llGetListEntryType

From Second Life Wiki
Revision as of 13:15, 21 February 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Summary

Function: integer llGetListEntryType( list src, integer index );

Returns an integer that is the type of the entry index in src.

• list src
• integer index

index supports negative indexes. If index is invalid then TYPE_INVALID is returned.

Specification

Index Positive Negative
First 0 -length
Last length - 1 -1

Indexes

  • Positive indexes count from the beginning, the first item being indexed as 0, the last as (length - 1).
  • Negative indexes count from the far end, the first item being indexed as -length, the last as -1.

Type Value
TYPE_INVALID 0
TYPE_INTEGER 1
TYPE_FLOAT 2
TYPE_STRING 3
TYPE_KEY 4
TYPE_VECTOR 5
TYPE_ROTATION 6

Caveats

  • If index is out of bounds the script continues to execute without an error message.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Articles

•  Negative Index

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetListEntryType( list src, integer index );