Template Functions / Logical Functions |
The switch() function compares an expression to different values, and return a result dependant on which value it equals to.
switch(expr1, array1, array2, [expr2])
<div gwc:content="switch(number(i), [1, 2, 3, 4], ['this is one', 'this is two', 'this is three', 'this is four' ], 'Don\'t know that number...')" />