validateCondition()
Overview
public boolean function validateCondition(
required string condition
, required string context
, required any validationResult
, string filterObject = ""
)
Validates the passed JSON condition string for the given context. Returns true when valid, false otherwise. Sets any errors in the passed Validation result object.
Arguments
Name | Type | Required | Description |
---|---|---|---|
condition | string | Yes | JSON condition string |
context | string | Yes | Context in which the condition is designed to be used |
validationResult | any | Yes | A Validation result object, used to collect detailed validation errors |
filterObject | string | No (default="") |