Utilization in arithmetic expressions
Macro name can be allocated to arithmetic expressions and parts thereof. Recursive treatment (nesting) is possible within arithmetic expressions, too. It must be ensured that a string always combines complete levels (i.e. terms whose results are not influenced by inserting '[' at the beginning and ']' at the end).
Programming example
Correct:
N10 "STRING1" = "0.5"
N20 "STRING2" = "5 * 12"
N30 "STRING3" = "SIN[89.5 + \"STRING1\"]"
N40 X[-2 * "STRING1" + "STRING2" + "STRING3"] (Moving to X60)
M30
Incorrect: Only complete arithmetic expressions may be combined in a string
N10 "STRING1" = "COS["
N20 "STRING2" = "90]"
N30 "STRING3" = " \"STRING1\" \"STRING2\" " Error