FindInArray

Revision as of 11:55, 26 February 2008 by imported>Speedo
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


A command for Pluggy

Syntax:

(Index:long) FindInArray ArrayID:long Value:long Start:long Stop:long

Returns the index of the first occurrence of Value between indexes Start & Stop in the array.

  • This can only be used to find integers (short and long).
  • Start is optional. By default it is 0
    • Stop is optional. By default it is the last index of the array
  • If the value is not in the array or the array does not exist, it returns -1.