TriggerEvaluate
- Parameters
whichTrigger trigger- comment
Evaluates all functions that were added to the trigger via
TriggerAddCondition. All return-values from all added condition-functions areanded together as the final return-value. Returns the boolean value of the return value from the condition-function. So if the condition-functions return0/0.0/null, thenTriggerEvaluatewill returnfalse. Note that an empty string""would returntrue.- note
If a condition-function crashes the thread or does not return any value
TriggerEvaluatewill returnfalse.- note
If you want to return false for a condition-function that returns string (for whatever reason) return
nullinstead of"".- note
All functions added via
TriggerAddConditionare run. There is no short-circuting. If you want short-circuting useAndorOr.- note
All functions added via
TriggerAddConditionare run in the order they were added.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
boolean- Source code
native TriggerEvaluate takes trigger whichTrigger returns boolean