Skip to main content

ComparisonTask


See the ComparisonTask typescript definition in @switchboard-xyz/common

Fields

NameTypeDescription
 op

The type of operator to use on the left (lhs) and right (rhs) operand.

 lhs

OracleJob where the executed result is equal to the left hand side operand.

 lhsValue

string

String or ${CACHE_KEY} representing the left hand side operand.

 rhs

OracleJob where the executed result is equal to the right hand side operand.

 rhsValue

string

String or ${CACHE_KEY} representing the right hand side operand.

 onTrue

The OracleJob to execute if the condition evaluates to true.

 onTrueValue

string

The result to use if the condition evaluates to true. Can be set to a ${CACHE_KEY}.

 onFalse

The OracleJob to execute if the condition evaluates to false.

 onFalseValue

string

The result to use if the condition evaluates to false. Can be set to a ${CACHE_KEY}.

 onFailure

The OracleJob to execute if the condition fails to evaluate.

 onFailureValue

string

The result to use if the condition fails to evaluate. Can be set to a ${CACHE_KEY}.

Enums

 Operation

ValueNameDescription
 0OPERATION_EQ

Use the equals to ‘==’ operator.

 1OPERATION_GT

Use the greater than ‘>’ operator.

 2OPERATION_LT

Use the less than ‘<’ operator.