"Conditional Statements": Harlowe (v2.0)#
(unless:) macro can also be used in place of
(if:) for the opposite effect. Furthermore, variables can be attached to hooks to control whether they are displayed based on if they are "true" (will be displayed) or "false" (will not be displayed).
:: StoryTitle Conditional Statements in Harlowe :: Start (set: $animal to "horse") (if: $animal is "dog")[It's a dog!] (else:)[It's a horse!] (unless: $animal is "dog")[It's a horse!] (else:)[It's a dog!] (set: $isDog to $animal is "horse") $isDog[It's a dog!]