Elixir provides short-circuiting logical boolean operators
or operators are said to be strict because they only accept booleans and return a boolean result. The pipes
|| and ampersands
&& are non-strict/relaxed and can take any value. The values
nil are the only falsey values and everything else is true.
or when you have boolean inputs and want a boolean result.
Documentation: Basic Operators