Welcome to the Creatures Wiki! Log in and join the community.

SETV

From Creatures Wiki
(Redirected from Setv)
Jump to navigation Jump to search

SETV is a CAOS command used to set a variable to a specific value.

Usage[edit]

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[edit]

SETV in conjuction with DIVV to divide on an imaginary command line:

SETV va00 10
DIVV va00 2
OUTV va00
    5

See also[edit]

  • VTOS converts between decimal and string
  • SETS and SETA for strings and agents, respectively

External links[edit]