Versions Compared

Key

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

...

Conditions used in the assessment are written in an expression format. Conditions state the question which it is dependent on as ‘answers.questionid’ and the answer-id it is dependent on. The answer-id has different formatting in the conditional expression depending on the answer type(see below). 

Conditionalities should be placed in the Question.csv file in the conditionality column for each of the questions that should appear based on set circumstances (conditionalities) only.

Conditions based on answers from a “Mapped” question will look like this: 

Info

Example:
answers.org_type == "other"


Syntax:

answers. + questionid + == "answerid"

Conditions based on answers from a “Multiple” question will look like this: 

Info

Example:
"professional_indemnity" in answers.liability_insurance

Syntax:

“answerid” + in answers. + questionid


Conditions based on answers from a “bool” question will look like this: 

Note for “bool” yes = answers.questionid , no = not answers.questionid

Info

Example of conditionality if bool question is answered YES:

answers.iso_bus_con

Syntax:

answers. + questionid of the question that will trigger this particular question to appear

Info

Example of conditionality if bool question is answered NO:

not answers.iso_bus_con

Syntax:

not answers. + questionid of the question that will trigger this particular question to appear

Changing conditionality requires assistance from the Rizikon Support team as the scoring algorithm will need updating. In order to do so though, we need to have all the essential information needed. The most efficient way would be to include all of the changes to the conditionals in the Changes Tracker table - see example below.

...