Keil™, An ARM® Company

Ax51 User's Guide

Conditional Functions

MPL provides several functions you may use to expand text conditionally.

FunctionDescription
EXITExits a REPEAT loop, a WHILE loop, or a user-defined function.
IFEvaluates an expression and, depending on the results, expands on set of text or another.
REPEATRepeatedly expands text a specified number of times.
WHILERepeatedly expands text while a specified expression is TRUE.