Trouble displaying the outcome of different conditions on the same page.

edited May 2015 in Help! with 2.0
Hello everyone. I am new to Twine and coding in general. I have been watching Vegetarian Zombie's "Intro to Twine 2.0" videos on Youtube. They have been very helpful, but I am not getting the same results that he is on this video

In this video, he creates a situation where you have two different conditions with different text displayed depending on which conditions you meet.

(if: $variable is this thing)[then show this text]
(if: $variable is > thisthing)[show this text]

When I try this, the text only shows up if I meet the first condition. If I meet the criteria for the second condition, no text is displayed. Is this an issue with the current version, or have I made an amateur mistake?

Comments

  • Try this:
    (if: $variable is this thing)[then show this text]
    (else:)[show this text]
    

    If you need more than two conditions, use an else if statement:
    (if: $variable is this thing)[then show this text]
    (elseif: $variable is another thing)[then show this text]
    (else:)[show this text]
    
  • Thank you so much. This worked out :-)
Sign In or Register to comment.