if (!%awaystatus) { is exactly the same as if ((%awaystatus == 0) || (%awaystatus == $null) || (%awaystatus == $false)) {

Each of those conditions tests for a logical false condition. If all three tests fail, then the value of the entire condition is False, which, stated another way, is Not True.

if (%awaystatus) { commands } means if (%awaystatus is anything other than 0, $null or $false) { do this code block }
if (!%awaystatus) { commands } means if (%awaystatus is 0, $null or $false) { do this code block }

Incidentaly, you can also just use if (!$away) { do stuff }


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C