Published on : August 06, 2020
Title:Switch Case
Purpose:Comparing the values
Syntax:[template.set a=2]
[aw2.switch]
[aw2.case cond='{template.a}’ equal=’1′]
Case 1 is executed
[/aw2.case]
[/aw2.switch]
Input Parameter:Any value to check
Return Value:Execute internal code.
Example:[template.set a=2]
[aw2.switch]
[aw2.case cond='{template.a}’ equal=’1′]
Case 1 is executed
[/aw2.case]
[aw2.case cond='{template.a}’ equal=’2′]
Case 2 is executed
[/aw2.case]
[aw2.case_else]
Case else is executed
[/aw2.case_else]
[/aw2.switch]