Please help us help you and fill where relevant:
Your LimeSurvey version:
Version 3.27.24
Own server or LimeSurvey hosting:
Theme: fruity
==================
Hello,
I´m new to the forum and hope you can help me.
I´m using Limesurvey for assessing two different products. Respondents are supposed to answer to several questions, each associated to a score for each of the product.
When respondents submit the questionnaire, they should see an end message, stating which of the two product is best for them. Unfortunately, the conditional syntax doesn´t seem to work as I would like (I underlined in bold, below, the part that doesn´t work). What I´m trying to have is "if 'result' is greater than 0, then...", "if 'result' is less than 0, then..." and "if 'result' is equal to 0, then..." but the first two conditions don´t work. Any suggestion on what I´m doing wrong? Thank you very much!
<div style="display:{if(
result>0,'block', 'none')};">
<h2>XXX is the best choice for your project!</h2>
<p>XXX is a blablabla. Please contact ZZZ for further guidance.</p>
</div>
<div style="display:{if(
result<0,'block', 'none')};">
<h2>YYY is the best choice for your project!</h2>
<p>YYY is a blablabla. Please contact ZZZ for further guidance.</p>
</div>
<div style="display:{if(result==0,'block', 'none')};">
<h2>There doesn't seem to be a clear winner between the two tools</h2>
<p>Please contact ZZZ for further guidance.</p>
</div>