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

How to (display:) a passage when a condition is met, and remove it when the condition is not met?

$
0
0
so, i got this:
$males
$females
$babies

(link: "Make Males")[(set: $males to it + 1)] <!--adds 1 to $males-->
(link: "Make Females")[(set: $females to it + 1)] <!--adds 1 to $females-->

that's in a passage, and this in another:
(link: "Make Babies")[(set: $babies to it + 1)] <!--adds 1 to $babies-->

now, i want to say if the $males = 1 and the $females = 1 then (display:) the second passage and if any of the $'s is less than what the condition requires then hide the (display:) of the second passage.

Viewing all articles
Browse latest Browse all 1844

Trending Articles