Skip to main content
Compare numbers
Wrk Product avatar
Written by Wrk Product
Updated over a year ago

Determine if a number is equals (=), not equals (<>), greater than (>), or less than (<) another number.

See how it works below

Common use cases

  • Data manipulation

Application

  • Calculate

Inputs (what you have)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

Number comparisons to be evaluated

The numbers to be compared. The expression can handle operators like '==', '<'

Text

Yes

2 (8-4) < 1 (2 + 3)

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library. These variables in the Data library are the outputs of previous Wrk Actions in the Wrkflow.

Outcomes

NAME

DESCRIPTION

Yes

This status is selected if the provided mathematical expression is True.

No

This status is selected if the provided mathematical expression is False.

Unsuccessful

This status is selected if the expression, terms or operator(s) are missing, or the mathematical expression does not make logical sense.

Tips and Definitions:

== TRUE if the expression terms/values are equal .

<> TRUE if the expression terms/values are not equal/different .

> TRUE if one term/value is greater than the other term/value.

>= TRUE if one term/value is greater or equal with the another term/value.

< TRUE if one term/value is less than the other term/value.

<= - TRUE if one term/value is less or equal with another.

and - TRUE if if all subexpressions are TRUE. Note: this is case sensitive.

or - TRUE if if one subexpressions is TRUE. Note: this is case sensitive.

Examples

For expressions like 5==5 , the selected response is Yes

For expressions like 5<>5 , the selected response is No

For expressions like 5+5>9 , the selected response is Yes

For expressions like 5+5>9 and 3+5==2+6 , the selected response is Yes (both subexpressions are correct)

For expressions like 5+5>9 and 3+5==6 , the selected response is No (only one subexpression is correct)

For expressions like 5+5>9 or 3+5==6 , the selected response is No (only one subexpression is correct)

Requirements

  • N/A

Did this answer your question?