System Command VARS: Difference between revisions
From NARS2000
Jump to navigationJump to search
(Created page with "<h1>)VARS - List all variables in workspace</h1> The ''')VARS''' command lists all of the variables that have been defined in the workspace. If the workspace has no variables,...") |
No edit summary |
||
Line 11: | Line 11: | ||
:</code> | :</code> | ||
The equivalent system function to allow a function to find out the names of all the variables in the workspace is {quad}NL | The equivalent system function to allow a function to find out the names of all the variables in the workspace is [[System Function NL|{quad}NL 2]]. | ||
{{Commands}} | {{Commands}} |
Revision as of 15:18, 27 February 2013
)VARS - List all variables in workspace
The )VARS command lists all of the variables that have been defined in the workspace. If the workspace has no variables, it returns nothing. Here is an example:
- )WSID
- IS CLEAR WS
- )VARS
- a←5
- b←3 4 5
- )VARS
- a b
The equivalent system function to allow a function to find out the names of all the variables in the workspace is ⎕NL 2.
System Commands (not case sensitive) | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
)CLEAR | )CLOSE | )COPY | )DROP | )EDIT | )ERASE | )EXIT | )FNS | )FOP | )FOPS | ||||
)IN | )INASCII | )LIB | )LOAD | )NEWTAB | )NMS | )OFF | )OPEN | )OPS | )OUT | ||||
)RESET | )SAVE | )SI | )SIC | )SINL | )SYMB | )ULIB | )VARS | )XLOAD | )WSID |