[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.12 ELSE

Executes the remainder of the line of code on which ELSE is encountered only if $TEST evaluates to false, provided the optional postcondition evaluates to true or is omitted.

Syntax

ELSE[:postcondition]

Non-Standard Behavior

FreeM allows a postcondition on ELSE. While explicitly forbidden in the standard–and for good reason–it was decided that FreeM should allow postconditions everywhere, both for the sake of foolish consistency (the likes of which Emerson warned against), and for the benefit of entrants to a hypothetical future obfuscated M contest, and those with a Machiavellian predisposition to wicked perversions and undue cleverness.

Using postconditions on ELSE should be strictly avoided in production code, as they have no practical use, and may contribute to technical debt, hardening of the arteries, hobgoblins, a small mind, a surfeit of logic, climate change, Daily WTF rants, or meltdown of global financial markets.


This document was generated on January 3, 2022 using texi2html 5.0.