|
Post by rcilveti on Aug 14, 2020 10:38:37 GMT
I would appreciate it very much if you could check whether the conditional coding ‘If’ is not working properly as it should. If so and I am not wrong, there is a serious bug that should be repaired
When I run the ‘Example of If’ included on ‘set section’ in the documentation 3.1.1, I cannot get the score that I expected Whatever answer I give to the 1st radio question ‘How much do you like bread?’, the score obtained in the conditional coding in the set item ‘likes_bread_very_much’ is always 0.
Even If I change the scores of the conditional in the set item ‘likes_bread_very_much’ (from 0 to 1 and from 1 to 2), once I answer the first question, the score obtained from the conditional of the 2n question is always 1
To be clearer, below, I reproduce the code of the mentioned example included in the documentation, adding an extra final info question to output the results
l: my_first_question t: radio q: How much do you like bread? - Not at all - A little bit - I like it - I like it very much - There is nothing I like more
l: likes_bread_very_much t: set - if $my_first_question < 4 then 0 - if $my_first_question >= 4 then 1
l: feedback t: info * my_first_question: {$my_first_question} * likes_bread_very_much: {$likes_bread_very_much}
I will be waiting for your comments or corrections Thanks
|
|
|
Post by alexandra (AEC) on Aug 14, 2020 12:15:58 GMT
Hi there,
this is very odd indead. I tried the code myself including a different order of the if-statements. The answer always defaults to the number set for "< 4" no matter the order of the if-statements.
|
|
|
Post by PsyToolkit on Aug 16, 2020 11:23:47 GMT
Thanks for reporting this bug which was new in version 3.1.1 (it worked fine in 3.1.0).
This bug has now been fixed.
|
|