Buzz: Questions & Answers

Variables within Variables

Follow
Feature idea (LEVEL 1)
Bruce Sharp

...or variable-ception for you movie buffs out there.

Is there a way to use a variable inside another variable? For example, let's say I have these variables:

Var: c = 1..3

Var: exp1 = 9

Var: exp2 = 10

Var: exp3 = 11

Can I do this: $exp$c$$. What I'm looking for this to do is to randomly pull just one of the exp variables. I already tried and it didn't seem to work. I'm just wondering if there is a way to make it happen. Maybe a different way to code it to recognize the inner variable first?

Don't worry about a different way to pull a random number, I'm just using this as a quick example.

Comments (3)

Sort by
Scott Taylor

Thank you for your question Bruce!

At this time variables within a variable are not supported.

0 Comment actions Permalink
Mjorgensen

Is it still true that a variable within a variable is not supported?

0 Comment actions Permalink
Brian Williams
  • Agilix team member

Hello Mjorgensen!

It is still the same function that we don't support a variable within a variable. 

0 Comment actions Permalink
Please sign in to leave a comment.