TriggerEvaluate
- Parameters
-
whichTrigger trigger
- comment
Evaluates all functions that were added to the trigger via
TriggerAddCondition
. All return-values from all added condition-functions areand
ed 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
, thenTriggerEvaluate
will returnfalse
. Note that an empty string""
would returntrue
.- note
If a condition-function crashes the thread or does not return any value
TriggerEvaluate
will returnfalse
.- 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 useAnd
orOr
.- 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