VALUE   TO   +TO

VALUE ( n -- <valname> )

Define value.

valname leave value on stack.

A Value behaves like a Constant, but it can be changed.

Examples:

12 value APPLES     \ Define APPLES with an initial value of 12
34 to APPLES        \ Change the value of APPLES. to is a parsing word
APPLES              \ puts 34 on the top of the stack

TO ( n --- <valname>)

to assign new value to valname

+TO ( n --- <valname>)

add n to the content of valname