Requires: IP-Symcon >= 6.1
boolean IPS_IsConditionPassing (String $Condition)
Condition | A list of JSON encoded conditions in the format of SelectCondition |
TRUE, if the condition is fulfilled, otherwise FALSE |
This function checks if the JSON encoded condition Condition is fulfilled. It is typically used in conjunction with a module that uses the form field SelectCondition.
if (IPS_IsConditionPassing($Condition)) { // Only do something if the condition is fulfilled };