TriggerEvaluate

Parameters
whichTrigger trigger
comment

Evaluates all functions that were added to the trigger via TriggerAddCondition. All return-values from all added condition-functions are anded together as the final return-value. Returns the boolean value of the return value from the condition-function. So if the condition-functions return 0/0.0/null, then TriggerEvaluate will return false. Note that an empty string "" would return true.

note

If a condition-function crashes the thread or does not return any value TriggerEvaluate will return false.

note

If you want to return false for a condition-function that returns string (for whatever reason) return null instead of "".

note

All functions added via TriggerAddCondition are run. There is no short-circuting. If you want short-circuting use And or Or.

note

All functions added via TriggerAddCondition are run in the order they were added.

patch

1.00

Source
common.j
return type
boolean
Source code
native TriggerEvaluate      takes trigger whichTrigger returns boolean