It looks like you're new here. If you want to get involved, click one of these buttons!
<<if $v1 is not 0 and $v2 is not 0...>>
etc<<set $test1 to 4>>
<<set $test2 to "hello">>
<<if $test1 is not 0 and $test2 is not 0>>This should work!<<endif>>
Can someone tell me where I'm going wrong? This is driving me up the wall!
Comments
The vanilla story formats do not have an
is not
/isnot
operator, so what you're doing there is conjoining the separateis
andnot
operators, which does not work like you're expecting it should (i.e. instead of testing$v1
for inequality to0
, you're actually testing$v1
for equality to the inverse coerced boolean value of0
).Of the story formats available for Twine 1, I believe only SugarCube has an actual
isnot
operator (thoughis not
is also accepted for this very reason, it seems reasonable to combineis
andnot
).Anyway, you'll need to use the
neq
operator. Like so:It's all working now, thank you again.
It's under expression (section: Logical operators) in the wiki.
Oh wow, I don't know how I missed that. Sorry.