Hoyer

sequence.inserthere.running

Recommended Posts

Hi!

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
endif

Do you have any suggestions for the problem?

Thank you in advance!

Hoyer

Share this post


Link to post
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:

execute(myString)

you can't do:

evaluate(myString)

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)

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now