The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get possible values for template list variable in macro

Axel Holene
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events