Difference between revisions of "&"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to perform macro substitution | Function to perform macro substitution | ||
− | |||
==Syntax== | ==Syntax== | ||
&<memvar> | (<exp>) | &<memvar> | (<exp>) | ||
− | |||
==See Also== | ==See Also== | ||
[[PRIVATE]], [[PUBLIC]], [[SET MACROS]], [[STORE]] | [[PRIVATE]], [[PUBLIC]], [[SET MACROS]], [[STORE]] | ||
− | |||
==Description== | ==Description== | ||
The & macro function substitutes the contents of the specified <memvar> into the command line. To use a macro in the middle of a word, it is necessary to end the variable name with a '.'. Any type of memory variable can be substituted as a macro. The & macro function can also substitute the result of an expression into the command line. The <exp> must be enclosed in round brackets. | The & macro function substitutes the contents of the specified <memvar> into the command line. To use a macro in the middle of a word, it is necessary to end the variable name with a '.'. Any type of memory variable can be substituted as a macro. The & macro function can also substitute the result of an expression into the command line. The <exp> must be enclosed in round brackets. | ||
+ | & macro substitution is also supported in the [[Command Window]], [[Console Workspace]] and [[Console Tab]] in the App Inspector from v4.1. | ||
==Example== | ==Example== | ||
Line 24: | Line 22: | ||
− | + | ||
− | + | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 05:42, 6 April 2018
Contents
Purpose
Function to perform macro substitution
Syntax
&<memvar> | (<exp>)
See Also
PRIVATE, PUBLIC, SET MACROS, STORE
Description
The & macro function substitutes the contents of the specified <memvar> into the command line. To use a macro in the middle of a word, it is necessary to end the variable name with a '.'. Any type of memory variable can be substituted as a macro. The & macro function can also substitute the result of an expression into the command line. The <exp> must be enclosed in round brackets.
& macro substitution is also supported in the Command Window, Console Workspace and Console Tab in the App Inspector from v4.1.
Example
subscript = 10 i10i = 5 ? i&subscript.i 5