Skip to content

Guide: Conditional Expressions on Questions

Bob Evans edited this page Nov 4, 2015 · 1 revision

Paco provides the ability to show or hide questions based on the responses to other questions. This is like skip logic in some survey tools but it is easier to define complex branching logic in your questionnaires.

Boolean expression about the answer to another, numerically-typed, question

Examples:

  • mood == 1
  • mood > 3 || location == 2
  • mood < 3 && location == 1

Conditional Operators

Test                                  Operator
----------------------------------------------------
Equals, Not Equals                     ==         !=
Less than, Less than or equal          <          <=
Greater than, Greater than or equal    >          >=
List contains a value                  contains   ==

Expressions can be joined

  • And: expression1 && expression2

  • Or: expression1 || expression2

Clone this wiki locally