Skip to content

Plan Icon Creator

Logic#

The Logic element allows combining multiple conditions. For example:

If Assessment selection is "Yes" and if Text contains "Problem".

You can also use an Expression instead of Conditions. The expression allows more complex options like:

  • (element_1_id EQ 1 OR element_2_id CO 2) AND element_3_id NE 3
  • element_1_id GT 12:00, where element_1_id is Date/Time element
  • element_1_id EQ WED, where element_1_id is Date/Time element
  • MULTIPLY(element_1_id, element_2_id) GT 1

MULTIPLY(...) can be used in an expression when you want to multiply numeric values before comparing the result.

  • MULTIPLY(element_1_id, element_2_id) EQ 550
  • MULTIPLY(element_1_id, element_2_id) GT 0

Notes for MULTIPLY(...):

  • It is intended for numeric values such as NUMBER, CALCULATION, and numeric ASSESSMENT option values.
  • For ASSESSMENT, the numeric value of the currently selected option is used.

Expression operators:

  • Equals: EQ, EQUALS, =
  • Not equals: NE, NOT_EQUALS, !=
  • Greater than: GT, GREATER_THAN, >
  • Greater than equals: GTE, GREATER_THAN_EQUALS, >=
  • Less than: LT, LESS_THAN, <
  • Less than equals: LTE, LESS_THAN_EQUALS, <=
  • Contains: CO, CONTAINS
  • Not contains: NC, NOT_CONTAINS

Inserting references#

Expressions do not have to be typed from memory. The Insert reference picker above the expression field lists the elements of the UI that can be used in one, and adds the picked element to the expression at the end.

For a Grid element the picker asks two more questions, because a Grid holds many values:

  • Fixed rows — pick the row and the column whose cell you mean. The reference that gets inserted looks like ${grid_id.row_id.column_id}.
  • Dynamic rows — a dynamic Grid has no fixed rows, so you pick an aggregate over all of them instead: SUM, AVG, MAX, MIN or COUNT, together with the column it is calculated on.

Only Grid columns of type Number can be referenced, and only Grids that have at least one of them appear in the picker.

References inside the expression are shown as colored chips carrying the element's label instead of its raw id, so an expression stays readable. A chip shown in red points at an element that no longer exists in this UI.

Debug#

When using Expression mode in the UI Designer, you can use the Debug button to evaluate the current expression directly in the frontend.

  • The debug output shows whether the expression currently resolves to PASS or FAIL.
  • It also shows intermediate calculation and comparison steps, including resolved MULTIPLY(...) values.
  • The debug view is intended for testing while designing and does not require a backend call.

See UI Designer