Hello.
Is it posiible to create a function using if (xxxx=A) then {do something} else {do something else} in a model or in a controller? The validation rules in a model operate in checking the input of a single field.
But in order to make a decision and control the flow of an app is something moreĀ complicated. How is this done in Codeigniter?