Added sample sample9 containing usages of logic operators.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>