Skip to content

Instantly share code, notes, and snippets.

@cerkit
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerkit/ce3ec933d718b056ae65 to your computer and use it in GitHub Desktop.
Save cerkit/ce3ec933d718b056ae65 to your computer and use it in GitHub Desktop.
Using an Enum
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