User Tools

Site Tools


visual3d:documentation:pipeline:expressions:example_using_the_amp_operator

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:expressions:example_using_the_amp_operator [2024/06/26 20:24] – created sgrangervisual3d:documentation:pipeline:expressions:example_using_the_amp_operator [2025/07/09 13:56] (current) sgranger
Line 1: Line 1:
-====== Example_using_the_AMP_Operator ====== +====== Example using the AMP Operator ======
- +
-==== Contents ==== +
- +
- +
- +
-  * [[#The_Ampersand_Operator|1 The Ampersand Operator]] +
-  * [[#Example_1:_Jane_Elizabeth_Doe|2 Example 1: Jane Elizabeth Doe]] +
-  * [[#Example_2:_Jane_and_John_Doe|3 Example 2: Jane and John Doe]] +
-  * [[#Example_3:_Jane_and_John_go_to_the_Market|4 Example 3: Jane and John go to the Market]] +
  
 ==== The Ampersand Operator ==== ==== The Ampersand Operator ====
  
-For first time users of Visual3D's scripting language the use of the & operator may not be straightforward. The [[https://www.c-motion.com/v3dwiki/index.php?title=Expressions|Expressions]] page contains some links and examples of how to use this operator including: +For first time users of Visual3D's scripting language the use of the & operator may not be straightforward. The [[visual3d:documentation:pipeline:expressions:expressions_overview|Expressions]] page contains some links and examples of how to use this operator including:
- +
-  * [[https://www.c-motion.com/v3dwiki/index.php?title=Expressions#Using_Pipeline_Parameters_in_an_Expression|Using Pipeline Parameters in an Expression]] +
-  * [[https://www.c-motion.com/v3dwiki/index.php?title=Expressions#Using_a_pipeline_parameter_as_part_of_a_signal_definition|Using A Pipeline Parameter as part of a Signal Definition]] +
-  * [[https://www.c-motion.com/v3dwiki/index.php?title=Expressions#Specifying_String_Data|Specifying String Data]]+
  
 The ampersand (&) is used in pipeline commands to concatenate strings together, and is a separator for the parser to find pieces that need to be parsed separately. To get the most out of this tutorial, it is recommended that you run the commands in Visual3D alongside reading the text descriptions, as the Pipeline Processing Results dialog is a helpful tool for understanding and debugging in this interface. The ampersand (&) is used in pipeline commands to concatenate strings together, and is a separator for the parser to find pieces that need to be parsed separately. To get the most out of this tutorial, it is recommended that you run the commands in Visual3D alongside reading the text descriptions, as the Pipeline Processing Results dialog is a helpful tool for understanding and debugging in this interface.
Line 142: Line 128:
 This expression successfully evaluates (meaning it gives no errors), but does not produce the correct result. As you can see in the image below, the expression explicitly evaluates (::A=::B) to a value of 0. It does not actually read in the variables that we want to compare. This expression successfully evaluates (meaning it gives no errors), but does not produce the correct result. As you can see in the image below, the expression explicitly evaluates (::A=::B) to a value of 0. It does not actually read in the variables that we want to compare.
  
-{{janeandjohn1.png}}+{{:janeandjohn1.png}}
  
 Let's add some "glue" and see what happens: Let's add some "glue" and see what happens:
visual3d/documentation/pipeline/expressions/example_using_the_amp_operator.1719433499.txt.gz · Last modified: 2024/06/26 20:24 by sgranger