Selecting with variable name
Today, I'm struggling to improve my script a little. I want the user to fill some editText boxes, in order to point the script to the proper object to be selected. Before that I had simple
if $prefix_body_suffix == undefined then ( )
but it was way to rigid, it forced the user to rename objects that they would fit into the way my script used them. So then I created some editText boxes, made some global variables and tried to work them in, but with no effect.
if $(syntax_prefix + "body" + syntax_suffix) == undefined then ( )
The main thing is - I don't know and can't find a way to select ($) objects that have names composed out of string variables. Can anybody help?
Thanks in advance and cheers!