Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Sugarcube] Can I do a statement to ask "if $variable is x or y"?

$
0
0
I'd like to hide a link if the user is on certain pages, Currently I'm doing this like so:
<<if passage() isnot "Inventory">><<if passage() isnot "Info">>[[Appearance]]<</if>><</if>>

So the "Appearance" passage link will only appear if the user is not on the "Info" or "Inventory" screen. It works but it is going to get really messy when I need to add 7 or 8 different links.

I was hoping there was a way to write it so that I could just add an "or" and the game would check if the user was on either passage.

Viewing all articles
Browse latest Browse all 1844

Trending Articles