Difference between revisions of "If else"

From Second Life Wiki
Jump to navigation Jump to search
(Redirecting to If)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:P_Rendered|t}}
#REDIRECT [[if]]
{{LSL_Conditional
|statement=if-else
|statement_header
|statement_desc=Any of the statements can be null statements.
|p1_name=condition|p1_desc=If this executes as true then '''branch_true''' is executed otherwise '''branch_false''' is executed.
|p2_name=branch_true|p2_desc=Can be either a single statement, a block statement, or a null statement.
|p3_name=branch_false|p3_desc=Can be either a single statement, a block statement, or a null statement.
|constants
|spec
|caveats
|examples
|helpers
|also_header
|also_functions
|also_tests
|also_articles
|also_footer
|notes
|mode
|cat1
|cat2
|cat3
|cat4
}}{{#vardefine:header_title|if({{#if:{{#var:p1_desc}}|{{HoverText|{{#var:p1_name}}|{{#var:p1_desc}}}}}}) {{#if:{{#var:p2_desc}}|{{HoverText|{{#var:p2_name}}|{{#var:p2_desc}}}}}} else {{#if:{{#var:p3_desc}}|{{HoverText|{{#var:p3_name}}|{{#var:p3_desc}}}}}}}}{{#vardefine:P_Rendered}}{{LSL Generic}}

Latest revision as of 20:50, 6 March 2007

Redirect to: