rubberscissors
Technical User
I have an instance where I generate a series of radio buttons in a loop, which use the variable x$c (where c is the current iteration of the loop, so I get x1, x2, x3, etc)...later, I need to call this variable in an if statement if { $x$c == $y }...when I do this, I get an error 'can't read $x$c: no such variable'. I changed the original variable to x($c), but then all I get is 'can't read x(1), no such variable'...I thought variables associated with buttons were global? Does anyone know what I'm doing wrong?