Difference between revisions of "Template:LSL Conditional"

From Second Life Wiki
Jump to navigation Jump to search
Line 80: Line 80:
{{!}}-
{{!}}-
{{#var:extras}}{{{extras|}}}
{{#var:extras}}{{{extras|}}}
{{!}}-
{{!}}<div id="box">
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
<div style="padding: 0.5em">
{{LSL_Constants_Conditional}}
{{#var:spec}}{{{spec|}}}<br style="clear:left;">
</div></div>
{{!}}-
{{!}}-
{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{{examples|}}}|
{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}{{{examples|}}}|
Line 87: Line 94:
</div></div>}}
</div></div>}}
{{!}}-
{{!}}-
{{#if:{{#var:notes}}{{{notes|}}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
{{!}}<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{LSL_Constants_Conditional}}
{{#var:notes}}{{{notes|}}}
{{#var:notes}}{{{notes|}}}
<br style="clear:left;"></div></div>
<br style="clear:left;"></div></div>
}}
{{!}}-
{{!}}-
{{#if:{{#var:helpers}}{{{helpers|}}}|
{{#if:{{#var:helpers}}{{{helpers|}}}|

Revision as of 20:47, 6 March 2007

{{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
}}

funckyloop( i; f; s; k; l; v; r ) statement_end

statement_type

•  i
•  f
•  s
•  k
•  l
•  v
•  r
•  statement_end statement_end_desc


A fictitious statement type

Specification

Conditional Types
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