User Tools

Site Tools


visual3d:documentation:pipeline:pipeline_commands:for_each_and_end_for_each

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:for_each_and_end_for_each [2024/09/03 13:56] – [Command Syntax] wikisysopvisual3d:documentation:pipeline:pipeline_commands:for_each_and_end_for_each [2024/09/03 13:57] (current) – [Command Syntax] wikisysop
Line 15: Line 15:
 ! the loop is repeated once for each item in the For_Each command at each ! the loop is repeated once for each item in the For_Each command at each
 ! loop INDEX is a pipeline command this is identified as ::INDEX in any other command ! loop INDEX is a pipeline command this is identified as ::INDEX in any other command
 +
 End_For_Each End_For_Each
 /Iteration_Parameter_Name=INDEX /Iteration_Parameter_Name=INDEX
Line 60: Line 61:
 Visual3D doesn't have a WHILE command, so there is no option but to use a kludge. You will need to set the option to make Visual3D stop processing the pipeline on the first error. The Visual 3D solution for the following algorithm can be found on [[|Example: Implementing a //while// loop]]. Visual3D doesn't have a WHILE command, so there is no option but to use a kludge. You will need to set the option to make Visual3D stop processing the pipeline on the first error. The Visual 3D solution for the following algorithm can be found on [[|Example: Implementing a //while// loop]].
  
 +<code>
 Variable blnContinue = true Variable blnContinue = true
-**While** Continue = true+While Continue = true
 Prompt user for variable blnContinue (true or false) Prompt user for variable blnContinue (true or false)
 FileCounter = FileCounter +1 FileCounter = FileCounter +1
 [load and process another file (e.g. filename_filecounter)] [load and process another file (e.g. filename_filecounter)]
-**End while**+End while 
 +</code>
 ==== Example: Processing many files ==== ==== Example: Processing many files ====
  
visual3d/documentation/pipeline/pipeline_commands/for_each_and_end_for_each.1725371760.txt.gz · Last modified: 2024/09/03 13:56 by wikisysop