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

NameTypeRequiredDescription
conditionstringYesJSON condition string
contextstringYesContext in which the condition is designed to be used
validationResultanyYesA Validation result object, used to collect detailed validation errors
filterObjectstringNo (default="")