Click Specify to specify a value in the Specify Calculation dialog box. The value is typically based on the state of the current script. The value is passed back to the calling script, where it can control the script’s logic.
If the optional script result is specified, the script result is returned and stored in the main script until another sub-script that returns a value is called. The script result gets deleted when you exit the main script. The script result can be stored in a local or global variable for later use.
If [Get(ScriptParameter) >= 90] Exit Script[Result: "A")]
Else If [Get(ScriptParameter) >= 80]
Exit Script[Result: "B"]
Else If [Get(ScriptParameter) >= 70]
Exit Script[Result: "C"]
Else If [Get(ScriptParameter) >= 60]
Exit Script[Result: "D"]
Else
Exit Script[Result: "F"]
End If