Hi. I'm working in Twine 2 in Harlowe. I'm struggling with this If loop. It's basically " If this variable is >0 show some text and a link, otherwise show two links"
If I set $splints to 1, the first part displays and the link works. But with $splints as 0 the second part displays but the links give an error message "(set 0 to 0 +1)I can't (go-to:) the passage '3a' because it doesn't exist."
3a and 3b do exist, of course.
Could someone please advise me on the right syntax?
(if: $splints >0)[Fortunately you have brought spare shin splints.
[[Continue -> Challenge 4: Anna arrives]]
]
(else:)[
(link:"Go to the other team and ask for spares")[(set $score to $score +1)(goto:"3a")]
(link:"Tell Rashida to go over to the other team and ask for spares")[(goto:"3b")]
]
If I set $splints to 1, the first part displays and the link works. But with $splints as 0 the second part displays but the links give an error message "(set 0 to 0 +1)I can't (go-to:) the passage '3a' because it doesn't exist."
3a and 3b do exist, of course.
Could someone please advise me on the right syntax?