Last active
August 29, 2015 14:05
-
-
Save cerkit/ce3ec933d718b056ae65 to your computer and use it in GitHub Desktop.
Using an Enum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim lightState as trafficLightEnum | |
lightState = trafficLightEnum.Yellow | |
If lightState = trafficLightEnum.Red Then | |
Vehicle.Stop() | |
Else If lightState = trafficLightEnum.Green Then | |
Vehicle.Go() | |
Else If lightState = trafficLightEnum.Yellow Then | |
Vehicle.FloorIt() | |
End If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment