Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Inserting "Get Script Parameter" into an if statement"


This topic is 6480 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is is possible to insert a "get scriptparameter" function in the following If statement, to replace the two instances of "standard 1":

If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p]

Posted

Thanks comment, I appreciate your help.

This works on my if statement but I cant get it to work on a clear statement. In light of what StuartT suggested, here is more information. This is my current script which works perfectly to toggle a colour on and off. I need to this for 6 table occurances - standard 1:: through standard 6, and for 5 "highlight tempkeys", highlight_a_tempkey, highlight_b_tempkey, c, d, and e.

Can I get this down to six scripts or even one script.

If [standard 1::highlight_a_tempkey = standard 1::zk_standard_p]

Clear [select; standard 1::highlight_a_tempkey]

Go to Field [ ]

Exit Script [ ]

End if

Set Field [standard 1:: highlight_a_tempkey; standard 1::zk_standard_p]

Go to Field [ ]

Thanks again

Posted

There's no way to specify the target field in commands such as Set Field[], Clear[], Go to Field[], etc. by calculation. Some workarounds have been suggested, none of them very elegant, IMHO.

 

This topic is 6480 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.