SUBV is a CAOS command used to subtract from a variable.


Syntax: SUBV var (variable) x (int or float)

Subtracts x from var, i.e. performs var = var - x. If the types of var and x do not match, var will be cast to the best precision; so if var is int and x is float, var will become a float.


SUBV used to decrease a variable:

setv va00 3
subv va00 1.2
outv va00

See also

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.