Is there a way to check if a variable exists? I tried strlen($myvar), but this errors if $myvar does not exist.
It’s ugly but here goes:
List all variables in a table DAT:
rvar >table1
evar >>table1
bvar >>table1
then use the tabfindincol() expression to look for the variable:
echo tabfindincol("table1","VARNAME", "rc", 0,0,"forward")
thanks greg, I’ll try to integrate it into my setup, but don’t think this will work effectively, cause I’d have to (re)create the table DAT holding all variables whenever a new variable is created anywhere in my scene, and this appens very frequently. But it’s worth a try. thanks!
cvar -v Varname returns the value of the variable if it’s there. That might help.
New expressions will be in the next build (3492+) to get information about variables, including if they exist, their type, and the path to where they are defined (if applicable).
superb, thanks