![]() |
Next Page |
| Contents > Script steps reference (alphabetical list) > Control script steps > If script step |
|
|
| If script step |
| Format |
If [<Boolean calculation>] |
| Options |
| Click Specify to define the Boolean calculation. In the Specify Calculation dialog box, type the calculation you want evaluated, or use the field list (on the left) and the functions list (on the right) with the mathematical and text operators to build the calculation. |
| Web compatibility |
| This script step is web-compatible. |
| Description |
| Every If step must have a corresponding End If script step somewhere after the If step and at the same indentation. Whenever you use an If script step, ScriptMaker automatically enters an End If step. |
| You can also add additional conditions by using the Else If script step and Else script step. |
| Note If you do not specify a calculation or if the calculation is unsuccessful, it will evaluate as False. Use the Get(LastError) function to capture these errors. |
| Example |
If [Get (AccountName) = "Jim Davis"] |
| Related topics |
| Defining calculation fields |
| If function |
| If structure example |
| Script steps reference (alphabetical list) |
| Script step categories |
| About formulas |
|
|
| Contents > Script steps reference (alphabetical list) > Control script steps > If script step | Next Page |