Comparison Functions
Understand Double Braces functions offered in the Digibee iPaaS and how to use them. Learn how Comparison functions let users make comparisons of boolean inputs.
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.
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".
AND( boolean1, boolean2, …, booleanN )
In the example below, the "false" value will be returned:
{
"and": {{ AND( true, false ) }}
}
the
null
value is considered as false
. The return of this function will be true
or false
.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.
NOT( boolean )
In the example below the "true" value will be returned:
{"not": {{ NOT( true ) }}}
the
null
value is considered as false
. The return of this function will be true
or false
.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".
OR(boolean1, boolean2, …, booleanN )
On the example below, the "true" value will be returned:
{
"or": {{ OR( true, false ) }}
}
the
null
value is considered as false
. The return of this function will be true
or false
.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 .
XOR(boolean1, boolean2, …, booleanN )
In the example below, the "true" value will be returned:
{
"xor": {{ XOR( true, false, true, true ) }}
}
the
null
value is considered as false
. The return of this function will be true
or false
.You can also read about these functions:
Last modified 2mo ago