« Back to Product

Documentation

IPS_IsConditionPassing

Require: IP-Symcon >= 6.1

 boolean IPS_IsConditionPassing (string $Condition) 

Parameters

Condition

A list of JSON encoded conditions in the format of SelectCondition

Returns

TRUE, if the condition is fulfilled, otherwise FALSE

Description

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.

Example

if (IPS_IsConditionPassing($Condition)) {
  // Only do something if the condition is fulfilled
};
Any questions?