Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

How to make a conditional link?

$
0
0
This is what I want (Sugarcube syntax):
[[Open oven No. 6|<<if $oven[5]>><<301>><<else>><<35>><<endif>>]]
where 301 and 35 are passage titles, where I need to go depending on the $oven[5] value.
The resulting html DOES what I want, BUT displays it as if there were an error! It says: "This passage does not exist: " and then shows correctly the "non-existing" passage, all on pink background. How to fix this? (Surely I can write <<if $oven[5]>>[[Open oven No. 6|301]]<<else>>[[Open oven No. 6|35]]<<endif>>, but this is ugly.)

Viewing all articles
Browse latest Browse all 3830

Trending Articles