I'm using Harlowe & Twine 2.1.3.

http://philome.la/jolwalton/nan-glitch

I'm kind of stumped. I think what I'm trying to do is fairly simple: create two number variables ($secondHandBid and $thirdHandBid) and increase or decrease them when certain conditions are met. But for some reason they end up null and giving me error messages.

I did also try declaring them in a setup passage, e.g. (set:$secondHandBid to 0).

```
{(set:$secondHandString to (text:...$hand2))
(set:$thirdHandString to (text:...$hand3))
(set:$secondHandBid to (random:1,2))
(if:$secondHandString contains $trumps)[(set:$secondHandBid to $secondHandBid+1)]
(if:$secondHandString contains "Ace")[(set:$secondHandBid to $secondHandBid+1)]
(if:$secondHandString contains "King")[(set:$secondHandBid to $secondHandBid+1)]
(if:$secondHandString contains "Queen")[(set:$secondHandBid to $secondHandBid+1)]
(unless:$leadSuit is in $secondHandString)[(set:$secondHandBid to $secondHandBid-1)]
(if:$secondHandString contains "Two")[(set:$secondHandBid to $secondHandBid-1)]
(if:$secondHandString contains "Three")[(set:$secondHandBid to $secondHandBid-1)]
(if:$secondHandString contains "Four")[(set:$secondHandBid to $secondHandBid-1)]
(if:$secondHandBid>4)[(set:$secondHandBid to 4)]
(if:$secondHandBid<0)[(set:$secondHandBid to 0)]
(set:$thirdHandBid to 4-$bid-$secondHandBid)
(if:$thirdHandString contains $trumps)[(set:$thirdHandBid to $thirdHandBid+1)]
(if:$thirdHandString contains "Ace")[(set:$thirdHandBid to $thirdHandBid+1)]
(if:$thirdHandString contains "King")[(set:$thirdHandBid to $thirdHandBid+1)]
(if:$thirdHandString contains "Queen")[(set:$thirdHandBid to $thirdHandBid+1)]
(unless:$leadSuit is in $thirdHandString)[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$thirdHandString contains "Two")[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$thirdHandString contains "Three")[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$thirdHandString contains "Four")[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$bid+$secondHandBid+$thirdHandBid>4)[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$bid+$secondHandBid+$thirdHandBid>4)[(set:$secondHandBid to $secondHandBid-1)]
(if:$bid+$secondHandBid+$thirdHandBid>4)[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$bid+$secondHandBid+$thirdHandBid>6)[(set:$thirdHandBid to $thirdHandBid-1)]
(if:$bid+$secondHandBid+$thirdHandBid>6)[(set:$secondHandBid to $secondHandBid-1)]
(if:$secondHandBid>4)[(set:$secondHandBid to 4)]
(if:$secondHandBid<0)[(set:$secondHandBid to 0)]
(if:$thirdHandBid>4)[(set:$thirdHandBid to 4)]
(if:$thirdHandBid<0)[(set:$thirdHandBid to 0)]}
```