Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Addition (+)

  • Subtraction (-)

  • Multiplication (*)

  • Division (/)

  • Equality (==)

  • Inequality (!=)

  • Less than (<)

  • Greater than (>)

  • Less than or equal to (<=)

  • Greater than or equal to (>=)

  • Logical AND (&&)

  • Logical OR (||) (jump to example)

  • Logical NOT (!)

  • Ternary Operator ( ? )

Operands

Operands are the values or expressions that operators act upon. They can be numbers, strings, dates, or references to other cells or fields.

Functions

Functions are built-in routines that perform specific tasks, such as calculations, data manipulation, and text processing. They can take arguments (inputs) and return values (outputs).


Formula Building Techniques

...

Question

Formula

Display when answer = Blue (The text selection is case sensitive)

Code Block
`SECT_D:D_COLOR`=="Blue"

Display when answer > 10 (num function converts the value to a number)

Code Block
num(`SECT_D:D_NUM`)>10

Display when answer = Yes

Code Block
`SECT_D:D_YN`=="Yes"

Display when answer = A Or D

Anchor
||
||

Code Block
`SECT_A:LTR_SINGLE`=='A'||`SECT_A:LTR_SINGLE`=='D'

Display when Question 1 = M OR Question 2 = X

Code Block
contains(`SECT_C:MULTI_MULTI_LTR_A`,'M')|| 
contains(`SECT_C:MULTI_MULTI_LTR_B`,'X')

Display when sum of Question 1 and Question 2 > 100 (num function converts the value to a number)

Code Block
sum(num(`SECT_E:E_VAL1`)+num(`SECT_E:E_VAL2`))>100

Display when the count of items >= 3

Code Block
count(`SECT_E:E_LTR_CNT`)>=3

Display when the text contains the word “show” (toLowerCase converts the text to all lower case and then in this example compares to the lower case value “show”)

Code Block
contains(toLowerCase(`SECT_E:E_TXT_CONTAIN`),"show")

Display when checkbox is checked

Code Block
`CHECKBOX_NAME` == 1 

Display when checkbox is unchecked

Code Block
`CHECKBOX_NAME` == 0

Advance Conditional Formula Examples

...