+1 vote
by (370 points)

I'm using Twine 2.1.3 and I was wondering if there is a Harlowe 2.0.1 equivalent version to this piece of code:

<<if $name is "Adam">>Hey, your name's Adam! So is mine!
<<else>>Hi, $name.
<</if>>

 

1 Answer

+2 votes
by (1.6k points)

If I understand correctly, you just need this Harlowe-style syntax for the "if"statement:

(if: $name is "Adam")[Hey, your name's Adam! So is mine!]
(else:)[Hi, $name.]

More details in the Harlowe manual.

by (370 points)
Thank you so much! This is exactly what I wanted! Thanks!
...