A more simple way to put it:
foo = bool ? a : b;
If bool is true, foo would be assigned a.
If bool is false, foo would be assigned b.
You just then put a condition statement in place of the bool such as:
foo = (a < b) ? a : b;
Because condition statements are bools
