SetVar: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
JefD (talk | contribs)
New page: {{Description|description=This command sets the named ComPost variable in it's parameter to the result of the next set of number commands and/or numeric calculations. This command is simil...
 
FabienT (talk | contribs)
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Description|description=This command sets the named ComPost variable in it's parameter to the result of the next set of number commands and/or numeric calculations. This command is similar to `Save#.'}}
==SetVar#('n', number)==
{{Notes|notes=This command is a little easier to use then [[Save#]].}}
{{Description|description=This command sets the named numeric variable 'n' to the value returned by a number command, or a calculation parameter. The variable 'n' will be defined in the global scope.  
 
NOTE: This command is a replacement for the older [[Save#]] command, with the advantage of allowing named variables (instead of registry indexes).}}
{{Stats|id=359|type=Number|class=All Machines|scope= Global|version=6.01.08+}}
{{Stats|id=359|type=Number|class=All Machines|scope= Global|version=6.01.08+}}
[[Category:MTM]]
[[Category:Output Control]]

Latest revision as of 18:44, 10 October 2024

SetVar#('n', number)

Description

This command sets the named numeric variable 'n' to the value returned by a number command, or a calculation parameter. The variable 'n' will be defined in the global scope.

NOTE: This command is a replacement for the older Save# command, with the advantage of allowing named variables (instead of registry indexes).


Stats

ID 359
Type Number
Class All Machines
Scope Global
Min Version 6.01.08+