Field Value Compare Condition

Functionality

The Field Value Compare Condition compares two values using a specified comparison operator. These values can be direct field values, constants, or calculated values derived from formulas or functions. The condition checks whether the first value meets the comparison condition with the second value. The comparison can be based on operators such as greater than, less than, equal to, or other types of comparisons. Depending on the result of the comparison, specific actions can be triggered.

Steps

Here are the steps to follow in order to use the field value compare condition:

1

In the "Value Expression" section, select the field, function, or formula that you want to compare. This could be a field, a calculated value, or a function that returns a value based on other fields or inputs.

2

From the dropdown menu, choose the comparison operator (such as Greater Than, Less Than, Equal To, etc.) to define how the two values should be compared.

3

In the "Compared To" section, enter the value, field, function, or formula that you are comparing the first value to. This could be another field , a constant value (e.g., number or string), or a calculated formula.

4

You can test the values in both the "Value Expression" and "Compared To" sections by clicking the play button next to each. This lets you verify the calculated values before the comparison.

For Example

Imagine you are creating a form where users need to input their age, and you want to ensure that the user is older than 18 years before they can submit the form. In this case, the first value would be the age field that the user enters. The comparison operator used would be "less than or equal to" , and the second value would be 18. The condition will then check if the value entered in the age field is less than or equal to 18. If the user’s age is greater than 18, the form will proceed to the next step. However, if the age is 18 or younger, the form will prevent submission and show an error message, notifying the user that they must be older than 18 years to submit the form. The notification would say, "You must be older than 18 years to submit the form."

In this example, the Set Field Error Action is used in conjunction with the field value compare condition.

Last updated