Template:LSL Conditional: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 77: | Line 77: | ||
</div></div> | </div></div> | ||
{{#var:extras}}{{{extras|}}}<div id="box"> | {{#var:extras}}{{{extras|}}}<div id="box"> | ||
<h2> | <h2>Specification</h2> | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{LSL_Constants_Conditional}} | {{LSL_Constants_Conditional}} | ||
| Line 86: | Line 86: | ||
{{#var:examples}}{{{examples|}}} | {{#var:examples}}{{{examples|}}} | ||
</div></div>}}{{#if:{{#var:notes}}{{{notes|}}}| | </div></div>}}{{#if:{{#var:notes}}{{{notes|}}}| | ||
<div id="box"><h2> | <div id="box"><h2>Notes</h2> | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{#var:notes}}{{{notes|}}} | {{#var:notes}}{{{notes|}}} | ||
<br style="clear:left;"></div></div>}}{{#if:{{#var:helpers}}{{{helpers|}}}| | <br style="clear:left;"></div></div>}}{{#if:{{#var:helpers}}{{{helpers|}}}| | ||
<div id="box"><h2> | <div id="box"><h2>Useful Snippets</h2> | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{#var:helpers}}{{{helpers|}}} | {{#var:helpers}}{{{helpers|}}} | ||
</div></div>}}{{#if:{{#var:also_footer}}{{{also_footer|}}}{{#var:also_functions}}{{{also_functions|}}}{{#var:also_events}}{{{also_events|}}}{{#var:also_articles}}{{{also_articles|}}}{{#var:also_tests}}{{{also_tests|}}}{{#var:also_header}}{{{also_header|}}}| | </div></div>}}{{#if:{{#var:also_footer}}{{{also_footer|}}}{{#var:also_functions}}{{{also_functions|}}}{{#var:also_events}}{{{also_events|}}}{{#var:also_articles}}{{{also_articles|}}}{{#var:also_tests}}{{{also_tests|}}}{{#var:also_header}}{{{also_header|}}}| | ||
<div id="box"><h2> | <div id="box"><h2>See Also</h2> | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{#if:{{#var:also_header}}{{{also_header|}}}| | {{#if:{{#var:also_header}}{{{also_header|}}}| | ||
{{#var:also_header}}{{{also_header|}}}}}{{#if:{{#var:also_events}}{{{also_events|}}}| | {{#var:also_header}}{{{also_header|}}}}}{{#if:{{#var:also_events}}{{{also_events|}}}| | ||
<h3> | <h3>Events</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_events}} | {{#var:also_events}} | ||
{{{also_events|}}} | {{{also_events|}}} | ||
{{!}}} }}{{#if:{{#var:also_functions}}{{{also_functions|}}}| | {{!}}} }}{{#if:{{#var:also_functions}}{{{also_functions|}}}| | ||
<h3> | <h3>Functions</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_functions}} | {{#var:also_functions}} | ||
{{{also_functions|}}} | {{{also_functions|}}} | ||
{{!}}} }}{{#if:{{#var:also_tests}}{{{also_tests|}}}| | {{!}}} }}{{#if:{{#var:also_tests}}{{{also_tests|}}}| | ||
<h3> | <h3>Tests</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_tests}} | {{#var:also_tests}} | ||
{{{also_tests|}}} | {{{also_tests|}}} | ||
{{!}}} }}{{#if:{{#var:also_articles}}{{{also_articles|}}}| | {{!}}} }}{{#if:{{#var:also_articles}}{{{also_articles|}}}| | ||
<h3> | <h3>Articles</h3> | ||
{{{!}} | {{{!}} | ||
{{#var:also_articles}} | {{#var:also_articles}} | ||
| Line 121: | Line 121: | ||
</div></div>}}{{#if:{{#var:location}}{{{location|}}}| | </div></div>}}{{#if:{{#var:location}}{{{location|}}}| | ||
<div id="box"> | <div id="box"> | ||
<h2> | <h2>Source Location</h2> | ||
<div style="padding: 0.5em"> | <div style="padding: 0.5em"> | ||
{{#var:location}}{{{location|}}} | {{#var:location}}{{{location|}}} | ||
</div></div>}}{{#var:footer}}<span id="sort" style="display:none;">{{#var:sort}}</span>{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Flow Control|{{#var:sort}}}}}} {{#if:{{#var:examples}}{{{examples|}}}||{{LSLC|Needs Example|{{#var:sort}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{#var:sort}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{#var:sort}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{#var:sort}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{#var:sort}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}|{{#var:sort}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}|{{#var:sort}}}}}} }}</includeonly> | </div></div>}}{{#var:footer}}<span id="sort" style="display:none;">{{#var:sort}}</span>{{#if:{{{self|}}}|| {{#ifeq:{{#var:mode}}|request||{{LSLC|Flow Control|{{#var:sort}}}}}} {{#if:{{#var:examples}}{{{examples|}}}||{{LSLC|Needs Example|{{#var:sort}}}}}} {{#if:{{{cat1|}}}|{{LSLC|{{{cat1}}}|{{#var:sort}}}}}} {{#if:{{{cat2|}}}|{{LSLC|{{{cat2}}}|{{#var:sort}}}}}} {{#if:{{{cat3|}}}|{{LSLC|{{{cat3}}}|{{#var:sort}}}}}} {{#if:{{{cat4|}}}|{{LSLC|{{{cat4}}}|{{#var:sort}}}}}} {{#if:{{{cat5|}}}|{{LSLC|{{{cat5}}}|{{#var:sort}}}}}} {{#if:{{{cat6|}}}|{{LSLC|{{{cat6}}}|{{#var:sort}}}}}} }}</includeonly> | ||
Revision as of 11:48, 30 December 2007
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
{{LSL_Conditional
|statement
|statement_header
|statement_desc
|statement_end
|statement_end_desc
|p1_name|p1_desc
|p2_name|p2_desc
|p3_name|p3_desc
|p4_name|p4_desc
|p5_name|p5_desc
|p6_name|p6_desc
|p7_name|p7_desc
|p8_name|p8_desc
|p9_name|p9_desc
|p10_name|p10_desc
|p11_name|p11_desc
|p12_name|p12_desc
|constants
|examples
|helpers
|also_header
|also_functions
|also_tests
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1
|cat2
|cat3
|cat4
}}
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
funckyloop( i; f; s; k; l; v; r ) statement_end
statement_type
| • | i | – | i | |
| • | f | – | f | |
| • | s | – | s | |
| • | k | – | k | |
| • | l | – | l | |
| • | v | – | v | |
| • | r | – | r | |
| • | statement_end | – | statement_end_desc |
A fictitious statement type
Specification
| Type | Condition |
|---|---|
| integer | True if it is not zero. |
| float | True if it is not zero. |
| string | True if its length is not zero. |
| key | True only if it is a valid key and not NULL_KEY. |
| vector | True if the vector is not ZERO_VECTOR. |
| rotation | True if the rotation is not ZERO_ROTATION. |
| list | True if the length is not zero. |
spec
Examples
examples
Notes
notes
Useful Snippets
helpers
See Also
also_header
Events
- also_events
Functions
- also_functions
Tests
- also_tests
Articles
- also_articles
also_footer