You can use the conditional operators for defining functions. You can then evaluate the conditional statement at a point as follows:
elseif
alsoif
When you use elseif, the program stops evaluating statements when it reaches the first true statement. When you use alsoif, the program evaluates all alsoif statements. If any of them are true, the program does not evaluate any of the following else statements.