The condition script allows you to decide whether an action will be available for the user, or if it will be visible but disabled, or if it will simply be hidden from the user.
By default, when adding a new action, it will have the following default condition script.
number ENABLED = 1; number DISABLED = 2; number HIDDEN = 3; return ENABLED;
The script should return one of the predefined variables: ENABLED, DISABLE or HIDDEN.
- Enabled actions are available for the user to execute.
- Disabled means that the button for the action will be visible, but it will be disabled, preventing the user from executing the action.
- Hidden actions will not be visible at all and thus not available for the user to execute.
Of course, since we are using SIL, the return value of the script can be conditional.
number ENABLED = 1; number DISABLED = 2; number HIDDEN = 3; if(<some_condition>){ return ENABLED; } if(<some_other_condition>){ return DISABLED; } return HIDDEN;