Reserved Characters

From Software Product Documentation
Jump to navigation Jump to search

Reserved Characters in Expressions

AMP

AMP = &

For example, if the desired pipeline command were as follows:

Select_Active_File
/FILE_NAME=ALL_FILES
/QUERY= TAG1 & TAG2
;

If the tags TAG1 and TAG2 exist then all files that have been assigned both tags will be active.

If, however, we want to use pipeline parameters in place of the text TAG1 and TAG2, we have a problem because there is no way to stop Visual3D from using the & character to concatenate the text. The solution was to introduce a reserved parameter ::AMP.

The following pipeline would result

Set_Pipeline_Parameter

Set_Pipeline_Parameter
/PARAMETER_NAME=A
/PARAMETER_VALUE=TAG1
;
Set_Pipeline_Parameter
/PARAMETER_NAME=B
/PARAMETER_VALUE=TAG2
;
Select_Active_File
/FILE_NAME=ALL_FILES
/QUERY= ::A&::AMP&::B
;

This would result in Visual3D interpreting the query

/QUERY=TAG1 & TAG2

For more: Examples of Using the AMP Operator

COLON

COLON = :

SEMICOLON

SEMICOLON = ;

PLUS

PLUS = +

FSLASH

FSLASH = /

SPACE

SPACE=" "

Retrieved from ""