Recommended Posts


I have a very similar problem like this link below:

The solution for this problem was:

execute("beginseq(" + myString + ")")

This way beginseq reads values of a poll.




I would like to do the same with

if (sequence.myString.running == 0)
      do something

Do you have any suggestions for the problem?

Thank you in advance!


Link to comment
Share on other sites

Certianly.  Use evaluate() instead of execute().  Execute() runs a string as a full statement (a complete line of script).  Evaluate() takes the string and evaluates it as an expression which returns a result.  It can't be used on its on.  So while you can do:


you can't do:


Instead, you use evaluate with other script on the same line that uses that result, so:

myVar = evaluate(myString)

or in your case:

if (evaluate("sequence." + myString + ".running") == 0)



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.