Meta Project

The Unofficial Meta Documentation

CHANGE

Summary

CHANGE Makes changes in an element of an array.

Category

Categoryname

Refinements

/BINARY - Writes data to binary format /REPEAT - Repeats the desired action

Usage

CHANGE/repeat value1 value2 value3

Arguments

value1 - Variable name of the array type.

value2 - value to give to the variable

value3 - number of repeats

Description

CHANGE Makes changes in an element of an array. With /REPEAT more efficient than subsequent POKEs.

Example Code

Let [board] binary! 50

change/repeat board 0 50

let memory binary! size-of floater!
unportable change/binary memory 0.0
it: 42.0
unportable change/binary memory it

For more examples of CHANGE/REPEAT look for them in the Specials pages or in the '100 lights or doors' example on the Examples page.

For more examples of CHANGE/BINARY see the Specials on converting various formats.

Related

AS  
POKE  

Back to the Meta Methods Reference index