Help! I am a german student in dire need of some advice on my issue I’ve been stuck on for weeks.
For my project I created 10 items as global variables (Item1, Item2, …).
Now I let Axure pick a random number between 1-10 (stored in global variable “RandomNumber”)
RandomNumber = [[Math.floor(Math.random()*10)+1]]
and add that number to a string creating an existing item-variable to another global variable called “RandomItem”
RandomItem = [["[[Item".concat(RandomNumber)]]]]
–> resulting in e.g.
RandomItem = [[Item2]]
If I then set text of a box called “PrintBox” to RandomItem it will only show the string “[[Item2]]” instead of the global variable (Item2 --> “cool”) it should call on.
I know this sounds super confusing - please check out my sample file. I am super grateful for any tips or help! Or maybe a whole different approach to my case?
GlobalVarIssue.rp (45.5 KB)