Howdy, Stranger!

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

Macros not working on Twine 2.0 on Chromebook

Help! I have been making progress with variables once i discovered the new format, however the macro "if" refuses to behave! PLEASE HELP!

Comments

  • The Harlowe Story Format documentation shows the format of the if/elseif/else macros.

    <!-- An example of the IF macro. -->
    (set: $var to 1)
    (if: $var is 1)[The variable is equal to one.]

    <!-- An example of the IF/ELSE macros. -->
    (set: $var to 0)
    (if: $var is 1)[The variable is equal to one.]
    (else:)[The variable is not equal one.]

    <!-- An example of the IF/ELSEIF/ELSE macros. -->
    (set: $var to 2)
    (if: $var is 1)[The variable is equal to one.]
    (elseif: $var is 2)[The variable is equal to two.]
    (else:)[The variable is not equal one.]
    If the above examples don't solve your problem then you need to supply an example of your code that is not working so we can determine what is wrong.
Sign In or Register to comment.