A variable is a fundamental programming concept. It is essentially a symbol that represents information in a program that can be changed, added to, or removed, similar to x, y or z in algebra. In CAOS, variables are denoted by symbols such as va01 and va02 (look at any CAOS code for specific examples). They can be used in CAOS scripts to store numbers and strings (groups of characters including letters and numbers, such as words and sentences). This can allow you to store a given piece of information in your script which you need for a later action.
Many CAOS commands use or act on variables. The following are particularly relevant:
- VAxx, OVxx and MVxx, the numbered variables
- NAME, MAME and GAME, named variables
- SETV and SETS, for input
- OUTV and OUTS, for output
|This stub could use more information.|