Matrix1 Utility Plug-ins

# ROTATE ARRAY

Syntax

ROTATE ARRAY Array() ROTATE ARRAY Array(), Shift ROTATE ARRAY Array(), Start, End ROTATE ARRAY Array(), Shift, Start, End

Description

This command is used to shift the contents of an array around. The first version of this command will rotate the contents of the array to the left so that item 1 becomes item 0, item 2 becomes item 1 etc, with item 0 becoming the last item in the array. The second version of this command will rotate the array, but by the amount specified. A shift of 1 will provide results identical to the first version of this command. If the shift value is a negative number, the array items will be shifted to the right instead. The third version of this command is identical to the first version, except it will be limited to the range specified. The fourth version of this command is identical to the second version, except it will be limited to the range specified.

Go back to ...

Matrix1Util_29 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011