Howdy, Stranger!

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

[Answered by self] Numeric/String Troubles

I'm sort of new to coding (esp. Twine) and probably am asking something really obvious.

I'm trying to do this
[[Add1|randomDisposalRoom][$test += "1"]]
<<print $test>>
the results are coming up as
01
011
0111
01111

I am guessing my problem is that it's not reading this as an interger but as a string. I've been all over the forums and help pages but yet have to see anything addressing this. Is this even possible?

I appreciate your help. You all seem like cool dudes.

Comments

  • After two weeks of futzing around, I figured it out.
    [[Add1|randomDisposalRoom][$test+=1]]
    <<print $test>>
    Syntax T.T
Sign In or Register to comment.