Take the number of the child element (array) from a numeric variable

Good afternoon, I can not understand why it is not possible to take the array cell number from a numeric variable. I get something like this:

ToString(Platform1.Variable(M2.[Variable(Click)]))

M2 - The name of the array.
Click - Numeric scene variable.

Click may be a numeric value, here it will be used as a string, the name of M2 child. Everytime you have a [ … ] inside must be a string so here you must write Variable(M2[VariableString(Click)])

To write a child name, its either separated with a dot . either a text inside [ ], but not both.

1 Like

Thanks, I really lost that point. It turned out that it was easier to make Click a string variable with a numeric value, and everything worked without conversions. Thank you)

1 Like