Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Newbie if else problems in harlowe

I'm trying to learn the basic syntax but i'm having trouble with this code

(if: $sword = 0)[
You find a single useable sword in the mess
(set: $sword to 1)](else:)[there is nothing useful left here]

What I want to happen is they find the sword and if they search again they find nothing. Could you please point out what i'm doing wrong? I'm sure its probably simple and obvious but I tried experimenting a bit and seem to just be running in circles

Comments

  • You're using the wrong operator in the comparison. You want to do something like the following:
    (if: $sword is 0)[
    
Sign In or Register to comment.