Heathbo Posted March 12, 2006 Posted March 12, 2006 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?
LaRetta Posted March 12, 2006 Posted March 12, 2006 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! LaRetta
Recommended Posts
This topic is 7091 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 accountSign in
Already have an account? Sign in here.
Sign In Now