Difference between revisions of "LlGetListEntryType"

From Second Life Wiki
Jump to navigation Jump to search
Line 11: Line 11:
|constants=
|constants=
{{{!}}
{{{!}}
{{!}}- valign="top"
{{!}}
{{!}}
{{{!}}{{Prettytable}}
{{{!}}{{Prettytable}}
!Type
{{!}}-{{Hl2}}
!colspan="2"{{!}}Type
!Description
!Description
!Value
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_INTEGER}}
{{!}}{{LSLG|TYPE_INTEGER}}
{{!}}1
{{!}}{{LSLG|integer}}
{{!}}{{LSLG|integer}}
{{!}}1
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_FLOAT}}
{{!}}{{LSLG|TYPE_FLOAT}}
{{!}}2
{{!}}{{LSLG|float}}
{{!}}{{LSLG|float}}
{{!}}2
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_STRING}}
{{!}}{{LSLG|TYPE_STRING}}
{{!}}3
{{!}}{{LSLG|string}}
{{!}}{{LSLG|string}}
{{!}}3
{{!}}}
{{!}}}
{{!}}
{{!}}
{{{!}}{{Prettytable}}
{{{!}}{{Prettytable}}
!Type
{{!}}-{{Hl2}}
!colspan="2"{{!}}Type
!Description
!Description
!Value
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_KEY}}
{{!}}{{LSLG|TYPE_KEY}}
{{!}}4
{{!}}{{LSLG|key}}
{{!}}{{LSLG|key}}
{{!}}4
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_VECTOR}}
{{!}}{{LSLG|TYPE_VECTOR}}
{{!}}5
{{!}}{{LSLG|vector}}
{{!}}{{LSLG|vector}}
{{!}}5
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_ROTATION}}
{{!}}{{LSLG|TYPE_ROTATION}}
{{!}}6
{{!}}{{LSLG|rotation}}
{{!}}{{LSLG|rotation}}
{{!}}6
{{!}}}
{{!}}}
{{!}}
{{!}}
{{{!}}{{Prettytable}}
{{{!}}{{Prettytable}}
!Type
{{!}}-{{Hl2}}
!colspan="2"{{!}}Type
!Description
!Description
!Value
{{!}}-
{{!}}-
{{!}}{{LSLG|TYPE_INVALID}}
{{!}}{{LSLG|TYPE_INVALID}}
{{!}}0
{{!}}None
{{!}}None
{{!}}0
{{!}}-
{{!}} 
{{!}} 
{{!}} 
{{!}}-
{{!}} 
{{!}} 
{{!}} 
{{!}}}
{{!}}}
{{!}}}
{{!}}}

Revision as of 06:43, 1 March 2007

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 Description
TYPE_INTEGER 1 integer
TYPE_FLOAT 2 float
TYPE_STRING 3 string
Type Description
TYPE_KEY 4 key
TYPE_VECTOR 5 vector
TYPE_ROTATION 6 rotation
Type Description
TYPE_INVALID 0 None

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 );