scalar is a builtin function that forces an expression to be interpreted as a scalar (i.e. return a single value). When you force an array to become a scalar it returns its length (note that length starts from 1 so the number it returns is not going to be the last element of your array).
Don't worry though, using scalar does not modify your array, you can use it again later and it will still have all it's values in place.
Chris
Lobster Aliens Are attacking the world!In reply to Re: Re: Re: Need counter assistance
by cfreak
in thread Need counter assistance
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |