Changes

Jump to: navigation, search

Template / Type Formula

1 byte added, 17:13, 6 October 2016
Case-When Condition
You can also use the '''Case''' syntax:
:<font size="3">'''@variable1@=CASE @variable2@ WHEN ''condition 1'' THEN ''value for condition 1'' WHEN ''condition 2'' THEN ''value for condition 2'' WHEN ''condition 3'' THEN ''value for condition 3'' ELSE ''value if not in any condition''END<end>'''</font>
OR
:<font size="3">'''@variable1@=CASE WHEN @variable2@ ''in (list items)'' THEN ''value for condition 1'' WHEN @variable2@ ''in (list items)'' THEN ''value for condition 2'' WHEN @variable2@ ''in (list items)'' THEN ''value for condition 3'' ELSE ''value if not in any condition''END<end>'''</font> 
===Examples===
Smartstaff
1,385
edits

Navigation menu