Skip to main content

How to build a conditional formula using IF

Learn to create complex logical calculations in Logica

Carissa Castro avatar
Written by Carissa Castro
Updated this week

To build a conditional formula:

  1. Connect the “test” and “test against” values to the top and bottom of a comparison operator.

  2. Connect the comparison operator output to the center of an “IF” operator.

  3. Connect the “value if true” to the top and “value if false” variables to the bottom of the "IF" operator.

  4. Connect the left side of the "IF" operator to the “result” node which will hold the result of the entire calculation.

For example, this table shows the values and result of the above formula when “Test” is greater than “Test Against” and, therefore, evaluates as true. Because of this, “Result” is equal to the value of “Value if True":

When “Test” is less than “Test Against” and, therefore, evaluates as false, “Result” is equal to the value of “Value if False.”


What's next?

Did this answer your question?