b = attribute("MOTOR-ON.ActualValue", sts);
if (!sts)
goto some_error;
...
some_error:
say("Something went wrong!");