When it's on or off. You can use boolean variables. 1's or 0's. So, set %var 1/0 then you ca use if ([!]%var) {. Rather than using $null's and on :)