User Tools

Site Tools


visual3d:documentation:pipeline:pipeline_commands:conditional_statement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:pipeline_commands:conditional_statement [2024/06/26 20:28] – created sgrangervisual3d:documentation:pipeline:pipeline_commands:conditional_statement [2024/07/17 15:46] (current) – created sgranger
Line 1: Line 1:
-====== Conditional_Statement ======+====== Conditional Statement ======
  
 \\ \\
 This command was modelled after the [[Visual3D:Documentation:Pipeline:Pipeline_Commands:For_Each_and_End_For_Each|For_Each]] command in the sense that there is a start (Conditional_Statement) and an ending event (Conditional_Statement_End). This command was modelled after the [[Visual3D:Documentation:Pipeline:Pipeline_Commands:For_Each_and_End_For_Each|For_Each]] command in the sense that there is a start (Conditional_Statement) and an ending event (Conditional_Statement_End).
  
-When the pipeline comes to an Conditional_Statement command, it will evaluate the expression using the same syntax as the [[Visual3D:Documentation:Pipeline:Expressions:Overview|Evaluate_Expression]] command. If the expression is TRUE (returns any value other than zero), all of the commands between the Conditional_Statement and Conditional_Statement_End commands will be executed. If the expression is FALSE (returns a zero), all the commands that are between the Conditional_Statement and Conditional_Statement_End commands will be skipped.+When the pipeline comes to an Conditional_Statement command, it will evaluate the expression using the same syntax as the [[Visual3D:Documentation:Pipeline:Expressions:Expressions_Overview|Evaluate_Expression]] command. If the expression is TRUE (returns any value other than zero), all of the commands between the Conditional_Statement and Conditional_Statement_End commands will be executed. If the expression is FALSE (returns a zero), all the commands that are between the Conditional_Statement and Conditional_Statement_End commands will be skipped.
  
 The ITERATION_PARAMETER_NAME is used to distinguish between different Conditional_Statement commands so that Conditional_Statement and Conditional_Statement_End commands can be unambiguously associated with each other. The ITERATION_PARAMETER_NAME is used to distinguish between different Conditional_Statement commands so that Conditional_Statement and Conditional_Statement_End commands can be unambiguously associated with each other.
Line 17: Line 17:
  
 /ITERATION_PARAMETER_NAME= /ITERATION_PARAMETER_NAME=
-/[[Visual3D:Documentation:Pipeline:Expressions:Overview|EXPRESSION]]=+/[[Visual3D:Documentation:Pipeline:Expressions:Expressions_Overview|EXPRESSION]]=
 **;** **;**
 === Conditional_Statement_End === === Conditional_Statement_End ===
visual3d/documentation/pipeline/pipeline_commands/conditional_statement.1719433701.txt.gz · Last modified: 2024/06/26 20:28 by sgranger