Maybe in this case what you need is enum:
type State = enum
sNEED_INIT # First value is the default
sON
sOFF
var s: State # By default it is set to the first enum value, in this case, sNEED_INIT
if s == sNEED_INIT:
# Stuff
More here http://nim-lang.org/docs/manual.html#types-enumeration-types