Using the above expression will work, another way would be to use a datatable for all of your items using a simple excel file. Create a symbolic link to the cursor (A1.Txt=On,A2.Txt=Off, etc.)
This would also allow you to redefine the tag for all items without the need to edit the expression.
The symbolic link would look kind of like: "DataTable.A" & MyState & ".txt"
Good Luck
Mike
Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512