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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.