Use let instead of def for global definitions.
Define results of logical operators.