/ Conditionals / aw2.case_else

Title : aw2.case_else
Purpose : Executes the default case if non of the conditiion is satisfied
Syntax : [aw2.switch]
[ cond='{request.x}’ equal=’1′]
x is equal to 1
[ cond='{request.x}’ equal=’2′]
x is equal to 1
x is not equal to 1 or 2
Input Parameters : Not required
Return Value : It does not return anything
Example  :
Code :
Description : In the example, if the the value of testvar is ‘1’, then it executes the code in the first block. If none of the condition is satisfied then it executes the last block that is default block
Most Popular

Leave a Reply

Your email address will not be published.