If you want to handle more than two states, it's perhaps better to use a numeric variable for this. Then you could use a string dictionary to save the descriptions something like this:
<state type="stringdictionary">1 =This is the first description ;2 =This is the second description ;3 = This is the third description</state>
So if your variable changes, you can easily call the descriptiontext like this
statusvariable=2
msg(DictionaryItem (state, ToString(statusvariable)) )