Actions

QS

Relevance: Difference between revisions

From LimeSurvey Manual

mNo edit summary
(Renaming relevance equation to condition)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<!--T:1-->
<!--T:1-->
<languages />
<languages />
<onlyinclude>
<onlyinclude>
 
===Condition (previously "Relevance equation")=== <!--T:2-->
===Relevance equation=== <!--T:2-->


<!--T:4-->
<!--T:4-->
Line 10: Line 10:


<!--T:5-->
<!--T:5-->
If the value of the relevance equation 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.
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.


<!--T:6-->
<!--T:6-->
Line 16: Line 16:


<!--T:7-->
<!--T:7-->
Whenever you save the relevance equation, it is evaluated and syntax-highlighted. Any errors will be color coded so that you can quickly detect and fix them.
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 the relevance equations are used correctly within your survey, read about our [[Show_logic_file|show logic file]] feature.}}
<!--T:13-->
{{Hint|Text=To check if all conditions are used correctly within your survey, read about our [[Show_logic_file|show logic file]] feature.}}


<!--T:8-->
<!--T:8-->
Line 24: Line 25:


<!--T:11-->
<!--T:11-->
Any equation that makes use of the [[Expression Manager|Expression Manager]] syntax, without surrounding curly braces.
*Any condition that makes use of the [[ExpressionScript - Presentation|ExpressionScript]] syntax, without surrounding curly braces.


<!--T:9-->
<!--T:9-->
Line 30: Line 31:


<!--T:12-->
<!--T:12-->
Here are good examples of [[Expression_Manager_how-tos#Syntax_Highlighting|syntax highlighting]].
Here are good examples of [[ExpressionScript How-tos#Syntax_Highlighting|syntax highlighting]].


<!--T:10-->
<!--T:10-->
</onlyinclude>
</onlyinclude>


<!--T:14-->
[[Category:Question Settings]][[Category:General Question Options]]
[[Category:Question Settings]][[Category:General Question Options]]
</translate>
</translate>

Latest revision as of 11:07, 13 July 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.