Saying I am writing an action in my controller.
While it has many logics: several if statements, also has cases.
Is there a way that I can group these logics, for instance, I want all the if
statements to be in one file and case
statements in another file. so in my controller, I do not have to write whole bunch of codes, I can just call the files that contain these statements. Like in HTML
we use script
tag to include JS
files
And maybe other action can also use these files in the future.