Comparison Component
This is the basic of any logic ✔️
Last updated
This is the basic of any logic ✔️
Last updated
Scenario steps
Condition step
Search step
Settings of scheduled scenario start
Filters, Security Layers in API endpoint settings
Filters and post-filters in Report settings
Note that there is also a —operator;
Here is a standard Directual comparison component:
There are following operators (lets compare A and B):
Operator
Description
Example
>, <, >=, <=, ==, !=
Standard operators: more; less; more or equal; less or equal; equal; not equal.
Compares different data types.
A > B
// true for A=5, B = 3;
A == B
// true for A = 5, B = '5' (A is number, B is string type
in
B is an array and contains A
A in B
// true for A = 1, B = 2,3,1,5
equalsDate, equalsDateTime
A is date, B may be string, operator convert it to a date in YYYY-MM-DDTHH:mm:SS+Z
format.
equalsDate
compares year+month+date.
equalsDateTime
requires the full conformity.
A equalsDate B
// true for A = 2020-04-01T12:00, B = 2020-04-21T21:10
like
String B contains string A, not paying attention to lower case / upper case.
Acts as a lightweight RegExp
A like B
// true for A = 'hello', B = 'Mike developed: Hello, world!'
regExp
Regular expression, or regExp
is a sequence of characters that define a search pattern.
Explore details and examples in RegExp article
isNotNull
Compares A and NULL (empty field)
A isNotNull
// false for A = '', true for A = 'hello'
isEmpty
Checks if A is empty
A isEmpty
// false for A = 'hello', true for A = ''
arrayContainsAny
A id an Array and B is an array. arrayContainsAny
means that we can find at least one element of B among elements of A
A arrayContainsAny B
// true for A = 1,2,3 and B = 4,3,0,a (3 is a common element)
arrayContainsAll
A id an Array and B is an array. arrayContainsAll
means that we can find all the elements of B among elements of A
A arrayContainsAny B
// true for A = 1,2,3 and B = 2,3
// false for A = 1,2,3 and B = 2,0