Get possible values for template list variable in macro

Axel Holene June 19, 2017

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events