Trigger doesn't work as it should IF AND statement
Jan 26, 2021
Has anybody else had trouble with triggers that use the "IF" statement?
I have the following:
quiz = true;
layer = 2;
If quiz = true AND layer = 2, show feedback 2;
If quiz = true AND layer = 3, show feedback 3;
both feedbacks appear. (now for the interesting part)
if I reverse the order to the following, it works as it should:
If layer = 2 AND quiz = true, show feedback 2;
If layer = 3 AND quiz = true, show feedback 3;
from my understanding of how storyline triggers work, they are very linear, it will start at 1, then 2, then 3. If 1 or 2 is true and directs to go to another slide, 3 will be ignored. However, using "AND" should not work that way. If, AND only if, both values are true should the statement work. if not it should be ignored.
it seems I need to check the value that is going to change first, and then have the constant value after. order should not matter when using "AND" or "OR"
2 Replies
I'd really like to see the .story file for that, if you don't mind.
unfortunately, that can't happen. I need to run some tests in a "clean" file to see if I get the same results. I have noticed that large files with a lot of triggers often go haywire.