Relevance/en: Difference between revisions
From LimeSurvey Manual
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 2: | Line 2: | ||
<onlyinclude> | <onlyinclude> | ||
===Relevance equation=== | ===Condition (previously "Relevance equation")=== | ||
'''Description''' | '''Description''' | ||
If the value of the | If the result value of the condition is "1" or "true", the question is "relevant" in the survey context, i.e. it is shown to the survey participant. If not, the question is hidden. Any survey question allows you to specify a relevance equation. This function is the successor of [[Setting_conditions|conditions]] and supports much more complex conditional logic. | ||
'''Syntax Highlighting''' | '''Syntax Highlighting''' | ||
Whenever you save the | Whenever you save the condition, it is evaluated and syntax-highlighted. Any errors will be color coded so that you can quickly detect and fix them. | ||
{{Hint|Text=To check if all | {{Hint|Text=To check if all conditions are used correctly within your survey, read about our [[Show_logic_file|show logic file]] feature.}} | ||
'''Valid values''' | '''Valid values''' | ||
*Any | *Any condition that makes use of the [[ExpressionScript - Presentation|ExpressionScript]] syntax, without surrounding curly braces. | ||
'''Examples''' | '''Examples''' |
Latest revision as of 17:38, 8 October 2022
Condition (previously "Relevance equation")
Description
If the result value of the condition is "1" or "true", the question is "relevant" in the survey context, i.e. it is shown to the survey participant. If not, the question is hidden. Any survey question allows you to specify a relevance equation. This function is the successor of conditions and supports much more complex conditional logic.
Syntax Highlighting
Whenever you save the condition, it is evaluated and syntax-highlighted. Any errors will be color coded so that you can quickly detect and fix them.
Hint: To check if all conditions are used correctly within your survey, read about our show logic file feature.
Valid values
- Any condition that makes use of the ExpressionScript syntax, without surrounding curly braces.
Examples
Here are good examples of syntax highlighting.