Difference between revisions of "FindRefInArray"
Jump to navigation
Jump to search
imported>Haama (Created) |
imported>Speedo |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
A command for [[:Category:Pluggy|Pluggy]] | A command for [[:Category:Pluggy|Pluggy]] | ||
'''Syntax:''' | '''Syntax:''' | ||
(Index: | (Index:ref) FindRefInArray ArrayID:long Value:ref ''Start:long'' ''Stop:long'' | ||
Returns the index of the first occurrence of Value between indexes Start & Stop in the array. | Returns the index of the first occurrence of Value between indexes Start & Stop in the array. | ||
Line 12: | Line 11: | ||
*Start is optional. By default it is 0 | *Start is optional. By default it is 0 | ||
**Stop is optional. By default it is the last index of the array | **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 | *If the value is not in the array or the array does not exist, it returns -1. | ||
[[Category: Pluggy]] | [[Category: Functions (Pluggy)]] | ||
[[Category: Array Functions (Pluggy)]] |
Latest revision as of 11:55, 26 February 2008
A command for Pluggy
Syntax:
(Index:ref) FindRefInArray ArrayID:long Value:ref 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 references.
- Use FindInArray and FindFloatInArray for other value types.
- 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.