SetVar: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffm (talk | contribs)
No edit summary
FabienT (talk | contribs)
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==SetVar#('n')==
==SetVar#('n', number)==
{{Description|description=This command sets the named numeric variable 'n' to the value of the next number command or calculation. This variable will be defined in the global scope. This command is a replacement for [Save#]] that allows named variables.}}
{{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:Output Control]]
[[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+