Or a more compressed format:
function toggle() {
$Toggle = !$Toggle;
if($toggle)
MessageAll('',"Toggle is on");
else
MessageAll('',"Toggle is off");
}
EDIT: Hal, you can use == or $= instead of >= and <=.
EDIT2: Hal, Your code doesn't even toggle, it just tells you if the command is activated or not.