AnsweredAssumed Answered

variable name by calculation

Question asked by BertrandLegrand on May 23, 2011
Latest reply on Nov 17, 2018 by beverly

Title

variable name by calculation

Post

Is there any way to define variables in a script and name them automatically with the result of a calculation?

Example:

$count = 1

set variable ( $var1 = value x ) ( the figure "1" becoming part of the variable's name as a result of the former calculation)

$count = 2

set variable ( $var2 = value y )

and so on.

Outcomes