Welcome to the Creatures Wiki! Log in and join the community.
SETS
Jump to navigation
Jump to search
SETS is a CAOS command used to set a variable to a string value.
Contents
Usage[edit]
Syntax: SETS var (variable) str (string)
Sets var to str. str can be any variable containing a string, any function that returns a string, or a string literal. Any previous value of var will be overwritten.
Examples[edit]
Setting a variable from a string literal, and from another variable:
SETS VA00 "Strings use backslash+n for newlines.\nSee?" SETS VA01 VA00
See also[edit]
- The following commands act on string variables: ADDS, SUBS; CHAR; LOWA, UPPA; SINS; STOI, STOF; STRL.
- Head Ball (teardown) to see SETS in use.
External links[edit]
- Discussion of data types within CAOS at an archive of the CDN.