aw2.switch
/ Conditionals / aw2.switch
Title | : | aw2.switch | ||||||||
Purpose | : | Checks a variable against a series of values until it finds a match. It is an alternative to the series of if-else | ||||||||
Syntax | : | [aw2.switch] [aw2.case cond='{request.x}’ equal=’1′] x is equal to 1 [/aw2.case] [aw2.case cond='{request.x}’ equal=’2′] x is equal to 1 [/aw2.case] [aw2.case_else] x is not equal to 1 or 2 [/aw2.case_else] [/aw2.switch] |
||||||||
Input Parameters | : | variable which needs to be check | ||||||||
Return Value | : | It does not return anything | ||||||||
Example | : |
|