Welcome to the Creatures Wiki! Log in and join the community.
Difference between revisions of "SETV"
Jump to navigation
Jump to search
m |
(see also) |
||
Line 16: | Line 16: | ||
==See also== | ==See also== | ||
− | *[[SETS]] | + | *[[OUTV]] for output |
+ | *The following commands relate to variable arithmetic: [[ADDV]], [[SUBV]]; [[MULV]], [[DIVV]], [[MODV]]; [[NEGV]], [[ABSV]]. | ||
+ | *The following commands are bitwise operations on integers: [[ANDV]], [[ORRV]], [[NOTV]]. | ||
+ | |||
+ | *[[SETS]] is for strings | ||
[[Category:C3 CAOS Commands]] | [[Category:C3 CAOS Commands]] |
Revision as of 15:30, 5 February 2006
SETV is a CAOS command used to set a variable to a specific value.
Usage
Syntax: SETV var (variable) val (int or float)
Set var to val. Any previous value of var is overwritten. The type of var will match that of val.
Examples
SETV in conjuction with DIVV to divide on an imaginary command line:
SETV va00 10 DIVV va00 2 OUTV va00 5
See also
- OUTV for output
- The following commands relate to variable arithmetic: ADDV, SUBV; MULV, DIVV, MODV; NEGV, ABSV.
- The following commands are bitwise operations on integers: ANDV, ORRV, NOTV.
- SETS is for strings