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

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

Recommended Posts

Posted

When writing a script the function Set Variable is available. My question is. After you Set the Variable how do you change it in the script. For example:

What if I Set Variable $Examp to 25. Then later in the script I want to add 15 to the variable.

Do I just do another Set Variable with the same name?

Posted

Set Variable [ $Examp ; Value: 25 ]

... do several script steps

Set Variable [ $Examp ; Value: $Examp + 15 ]

...then you can set a field with the returned value of 40 as: Set Field [ field ; $Examp ]

When in doubt, create a field and try setting it with various configurations. Math is great for testing because the logic is clear. And you have Data Viewer (FMA); you can use it to evaluate or monitor your variables. It's very cool! :wink2:

LaRetta

This topic is 6833 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.