If you want several conditions to be true, you do this:
if condition and condition and condition resultendIf you want the same result when just one of a number of conditions is true, you do this:
Code:
if condition or condition or condition return resultend
If you want a different result depending on different conditions, you do this:
Code:
if condition1 result1elsif condition2 result2elsif condition3 result3else result4end
If you want the above, and all those conditions are similar (like you're checking the value of a variable, and want a different result depending on the variable), you do this:
Code:
case conditionwhen value1 result1when value2 result2when value3 result3else result4end
If none of those help, then you need to be more specific about what you're trying to do. Say what the conditions actually are that you're testing for, what the possible values are, and what the results are for each one. Explain what you're trying to achieve, not how you're doing it, and we can help you figure out the best way.