One of the things I love about coding is the simple logical basis that it is all built on. A lot of it can be boiled down to four simple words: If This Then That. If a condition is met, then do something.
There is obviously more to it than that. We have And, Or, Else, ElseIf, When etc, but the heart for me is If This Then That.
For example, in a game, you could have
- IF player presses a button (THIS) THEN make the player jump (THAT).
- In gamification, you could see IF user gets 500 points (THIS) THEN give user badge (THAT).
Of course, we can expand on that sort of logic with the operators I mentioned before.