IMPORTANT: This documentation has been discontinued. Read the updated Comparison Functions documentation on our new documentation portal.
The functions were created to:
speed up the creation of your integrations even more
decrease the complexity of your pipelines
simplify data conversions and transformations during the flow of your pipelines
The comparison functions make comparisons of boolean inputs and are available for components that support Double Braces expressions. To know how to provide information to the components using this resource, click here.
AND
By using Double Braces, you can combine the function with the access to the input JSON element of a component.
In the AND comparison function, both provided values must be "true" to return "true".
Syntax
AND( boolean1, boolean2, …, booleanN )
In the example below, the "false" value will be returned:
{
"and": {{ AND( true, false ) }}
}
IMPORTANT: the null value is considered as "false". The return of this function will be "true" or "false".
NOT
By using Double Braces, you can combine the function with the access to the input JSON element of a component.
The NOT comparison function returns the opposite received value.
Syntax
NOT( boolean )
In the example below the "true" value will be returned:
{
"not": {{ NOT( true ) }}
}
IMPORTANT: the null value is considered as "false". The return of this function will be "true" or "false".
OR
By using Double Braces, you can combine the function with the access to the input JSON element of a component.
In the OR comparison function, at least one of the provided values must be "true" to return "true".
Syntax
OR(boolean1, boolean2, …, booleanN )
On the example below, the "true" value will be returned:
{
"or": {{ OR( true, false ) }}
}
IMPORTANT: the null value is considered as "false". The return of this function will be "true" or "false".
XOR
By using Double Braces, you can combine the function with the access to the input JSON element of a component.
The XOR comparison function will only return "true" if the provided values are opposite. Example: TRUE and FALSE or FALSE and TRUE.
With the support to multiple boolean values, the strategic function resolution is made in pairs, from the left to the right. Example: (TRUE and FALSE and TRUE) = FALSE or (FALSE and TRUE and FALSE and FALSE) = TRUE .
Syntax
XOR(boolean1, boolean2, …, booleanN )
In the example below, the "true" value will be returned:
{
"xor": {{ XOR( true, false, true, true ) }}
}
IMPORTANT: the null value is considered as "false". The return of this function will be "true" or "false".
You can also read about these functions: