Difference between revisions of "Template:LSL Function/negative index"
Jump to navigation
Jump to search
m (typo) |
|||
Line 8: | Line 8: | ||
{{#vardefine:ni_nc|}} | {{#vardefine:ni_nc|}} | ||
{{#vardefine:ni_p1|number}} | {{#vardefine:ni_p1|number}} | ||
{{#vardefine:ni_p2|p2}} | <!--{{#vardefine:ni_p2|p2}} | ||
{{#vardefine:ni_p3|p3}}--> | |||
</noinclude>{{#if: | </noinclude>{{#if: | ||
Line 65: | Line 65: | ||
|3=either '''{{{2}}}''', '''{{{3}}}''' or '''{{{4}}}''' are | |3=either '''{{{2}}}''', '''{{{3}}}''' or '''{{{4}}}''' are | ||
|2=either '''{{{2}}}''' or '''{{{3}}}''' are | |2=either '''{{{2}}}''' or '''{{{3}}}''' are | ||
|1='''{{{2}}}''' is}} out of bounds the script continues to execute without an error message. | |1='''{{{2}}}''' is}} out of bounds the script continues to execute without an error message{{#if:{{{returns|}}}| {{{returns|}}}|.}} | ||
}}}} | }}}} | ||
Revision as of 12:21, 9 April 2010
Format:
{{LSL Function/negative index|boolean|p1|p2|p3}}
Exclude p1, p2, or p3 if not used.
Debugging
#var | value | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
header_footnote |
{{{2}}} supports negative indexes. | ||||||||||
spec |
Indexes
| ||||||||||
caveats |
| ||||||||||
notes | |||||||||||
constants_nb | |||||||||||
also_articles |
| ||||||||||
footer |