Difference between revisions of "Template:LSL Function/list/element"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
{{LSL_Function/negative index|true|{{{2|none_}}}}}{{#if: | {{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.}} | ||
{{#vardefine:p_{{{2|none_}}}_desc|Index of the element of interest.}} | {{#vardefine:p_{{{2|none_}}}_desc|Index of the element of interest.}} | ||
{{#vardefine:header_footnote|{{#if:{{{return|}}}|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}} | {{#vardefine:header_footnote|{{#if:{{{return|}}}|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}} | ||
If | If {{LSLP|{{{2|none}}}}} describes a location not in {{LSLP|{{{1|none}}}}} then {{{return|}}} is returned.{{#if:{{{3|}}}|<br/> | ||
{{#if:{{{nc|}}} | {{#if:{{{nc|}}} | ||
|If the type of the element at | |If the type of the element at {{LSLP|{{{2|none}}}}} in {{LSLP|{{{1|none}}}}} is not a [[{{{3|}}}{{#var:lang}}|{{{3|}}}]] then {{{return|}}} is returned. <br/> | ||
Here is a workaround: <code>([[{{{3|}}}{{#var:lang}}|{{{3|}}}]])[[llList2String{{#var:lang}}|llList2String]]({{LSL Param|{{{1|none}}}}}, {{LSL Param|{{{2|none}}}}});</code> | Here is a workaround: <code>([[{{{3|}}}{{#var:lang}}|{{{3|}}}]])[[llList2String{{#var:lang}}|llList2String]]({{LSL Param|{{{1|none}}}}}, {{LSL Param|{{{2|none}}}}});</code> | ||
|If the type of the element at | |If the type of the element at {{LSLP|{{{2|none}}}}} in {{LSLP|{{{1|none}}}}} is not a [[{{{3|}}}{{#var:lang}}|{{{3|}}}]] it is [[typecast]] to a [[{{{3|}}}{{#var:lang}}|{{{3|}}}]]. {{#if:{{{nf|}}}||If it cannot be typecast {{{return|}}} is returned.}}}}}}|{{#var:header_footnote}}}}}} | ||
}}<includeonly>{{LSLC|List/Read Element{{#var:lang}}}}</includeonly><noinclude> | }}<includeonly>{{LSLC|List/Read Element{{#var:lang}}}}</includeonly><noinclude> | ||
{| {{Prettytable}} | {| {{Prettytable}} |
Revision as of 18:14, 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 |
Indexes
| |||||||||
constants_nb | ||||||||||
also_articles |
|