MER provides structures, which are specialized operations to control the logical flow of data.
These structures may be used inline for the value(s) they visit, or stand alone for controlling execution based on conditions.
The supported operations are:
execution based on condition
repeated execution
repeated execution based on condition
repeated execution on all elements of iterable
jumps to specific case based on equivalency
if [bool]:[process]
repeat [number]:[process]
while [bool]:[process]
for […variable] in [iterable]:[process]
switch […variable]:if [value]:[process]
Additionally, else statements can be chained after an if clause to handle the case where the condition evaluates to false, or after any repetition clauses to handle the case of ending execution without breaking. They may come with a condition.
else [condition]: [process]
else: [process]
nelse [condition]: [process]
nelse: [process]