IS_IN(state_name);
(Returns TRUE if in state state_name)
Examples:
if (IS_IN(Accelerating))…
(Test to see if currently in state Accelerating. Result is TRUE if yes, FALSE if no.)