+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!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...