Which key? && and || or
In this example the if statement uses 2 expressions linked by an 'or' || (2 vertical lines).
The if will evaluate true if either expression (one OR the other) is true.
Expressions can also be linked using 'and', &&. Expressions linked by an and need to both be true for the condition to become true.
int ap;
if ((key == 'a') && (ap ==2)) will be true only when the variable ap is 2 and the a key is pressed.