Variables within variables
Oct 05, 2020
By
Ryan Passey
Is it possible to program a variable inside a variable? For example - whatever x is determines which "y" variable is affected. If x = 13, then the variable y(13) is changed. If this is possible then with 100 y variables, y(1) - y(100), all I need to modify them is one statement, y(x) = true; rather than programming 100 individual statements. This may be called nesting. I'm hopeful, but I haven't been able to find out how, if it's possible.
2 Replies
Sorry, that's not possible with built-in Storyline functions. You may be able to do this with Javascript, in an [x,y] array.
Got it. It wasn't looking like this was possible, but wanted to ask to make sure. Thanks!
This discussion is closed. You can start a new discussion or contact Articulate Support.