Adds the subsequent event to the event list: When expression changes from False to non-False, label1 is called. If label2 is provided, it is called when expression changes from non-FALSE to FALSE. See the topic Event-Driven Programming for more information about event-driven commands and how frequently the interpreter tests the value of expression.
Syntax
Onexp_Bool_Change expression GoSub label1, [label2]
Example
ONEXP_BOOL_CHANGE ON_GROUND GOSUB subON_GRND, subAirborne
subON_GRND:
PRINT "Nice landing."
RETURN
SubAirborne:
PRINT "Now you are flying."
RETURN