since I have no clue about JavaScript... And I mean 0,0 ... I don't know how to handle my following problem:
I want to make it easier for viewers to carry decisions made in one tease to the next. Get away from buttons & choices, where I list all the possible choices you made a tease (or teases) earlier. My idea was to give the viewer at the end of a path either a number (like 11) or a word (i.e. cat).
In the next tease I ask the viewer, which he got at the end of the tease and then guide him to an invisible page, which enables or disables certain pages later on.
I tried following, but it doesn't work:
Page1:
Prompt -> variable name: number
Say -> number (just out of curiosity if it works & it does. EOS display the var number correctly)
Page2:
If -> Code:'var number = 11', Then: Goto Page3, Else: empty
If -> Code:'var number = 22', Then: Goto Page4, Else: Goto Page5
Page3, 4 & 5:
Image (different pictures to identify if it worked)
Sadly the script stops, when it reaches the first If-Command.
How can I fix it?


