Difference between revisions of "Template:LSL Function/list/element"

From Second Life Wiki
Jump to navigation Jump to search
m (screwed up ever one of them ~_~)
m
 
Line 1: Line 1:
<includeonly>{{#if:{{#var:article_type}}||{{LSLC|Template Improperly Injected{{#var:lang}}}}}}</includeonly>{{LSL_Function/negative index|true|{{{2|none_}}}}}{{#if:
{{LSL Injection Test}}{{LSL_Function/negative index|true|{{{2|none_}}}}}{{#if:


{{#vardefine:p_{{{1|none}}}_desc|List containing the element of interest.}}
{{#vardefine:p_{{{1|none}}}_desc|List containing the element of interest.}}

Latest revision as of 20:03, 10 June 2012

#var value
p_none_desc List containing the element of interest.
p_none__desc Index of the element of interest.
header_footnote

none_ supports negative indexes.

spec
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.
constants_nb
also_articles
•  Negative Index