I tried this:
[blocks]
<set{ swap }to( item( <{ n }> ) of array>
<replace item( <{ n }> ) of array with item( (( item(<{ n }>) of array> <+> 1 )) )>
<replace item( (( item( <{ n }> ) of array> <+> 1 )) )>
[/blocks]
But it didn't work. Any ideas?
Last edited by AlanProjects (2008-12-30 22:11:47)
Offline
set [tempitem] to (item [1] of [array])
replace item [1] of [array] with (item [2] of array)
replace item [2] of [array] with (tempitem)
Try that. I tested it and it works. Just change the ones and twos with whatever numbers of the array you want.
Offline
I know it works i just made a dumb error.
Offline