Or Conditions:
Remember back to when we learned how to use events to drive a car? We had an example where there were four magnets which we could click on to direct our car to go toward one of those magnets. It worked, but... there was a small problem. Any object in the world that you clicked on, the car would start moving towards that object. There was no way we could "check" that the object clicked on was one of the 4 magnets before executing the instruction to cause the car to move towards that object. In the video below, we show you a modified version of the car driving game with a few extra objects in the world (trees, etc.)
In Video 1, we show you the original world: Where any object you click on, the car will move towards that object.
In Video 2, we can see that we now only sometimes have the car move toward an object when we click on it. We only have the car move if the object we clicked on was one of the magnets, otherwise we don't have it do anything.
And Conditions:
In the example below, we introduce a game that we will build. It's a very simple game where you "play" by clicking on the handle. When you click on the handle, the three balls are randomly assigned to one of 2 colors -- red or blue. We then check, if all balls are blue, then our space ship takes off!