+1 vote
by (2.2k points)
edited by

So this is my code, but I keep getting errors about it. It used to work and then suddenly it didn't work. 

<<switch visited()>>
<<case 1>>
words words words
[[option 1]] || [[option 2]]
<<case 2>>
words words words
[[option 1]] || [[option 2]]
<<case 3>>
words words words
[[option 1]] || [[option 2]]
<<case 4>>
words words words
[[option 1]] || [[option 2]]
<</switch>

The errors I get are things like "can't find <</switch>>" but prints it out on the last line and "<<case>> can't find it's parent macro>>

It's also only the first passage that doesn't work, the other two where I have this exact code work just fine.

1 Answer

0 votes
by (61.3k points)
 
Best answer
You're missing a '>' at the very end.
by (2.2k points)
it's always the stupid things that trip me up, sorry, my bad. I feel like an idiot.
by (61.3k points)
It happens to the best of us.
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...