Condition - gomeddo/js-sdk GitHub Wiki
Object that allows for filtering based on custom fields or more complex conditionals. Implements ConditionElement.
Example
const condition = new Condition('B25__Base_Price__c', Operator.LESS_THAN, 200)
Constructor
Condition(fieldName, operator, value)
Parameters
fieldName
The field name of the field you want to filter by.operator
The operator you want to use. Of type Operator.value
The value you want to match against. Should be compatible with the field type and Operator can be string, number, boolean and for operator IN and NOT_IN string[].
Operator
Operator enum allows you to specify the way the field and the value should be compared.
Values
- EQUAL
- NOT_EQUAL
- LESS_THAN
- GREATER_THAN
- IN
- NOT_IN