I'm having a template variable which has a list of possible values, say
$myVariable = {value1, value2, value3}How can I get the values of these variables into a macro which is to be used on the same template? It's supposed to be used in a if-loop. Pseudo code:
if( myChoice == myVariable[0] )
do something
elseif ( myChoice == myVariable[1] )
do something else
elseif ( myChoice == myVariable[2] )
do something else than before
else
do something completely different
end