Operators and Control StructuresDownload PDFSelected SectionSelected Section and Subsection(s)Entire ManualUpdated2025-10-311 minute(s) readPAtoolsUser Manual Learn the rules for code execution, the supported operators, and the control structures. Precedence RulesExpressions in PAscript are calculated in a specific order.Assigning VariablesAssign variables using simple assignment, tuple assignment, assignment by value, or assignment by reference.ConstantsDeclare variables as constants using the const qualifier.Numerical Operations and OperatorsUse mathematical operators, bit operators, and self-assigned operators in PAscript.Type ConversionsIf the target variable has a different data type than a variable that is included in the calculation or assignment, a type conversion is performed.Text ConcatenationConcatenate texts using sprintf or using the + operator. The operator is an easy way to link text together.Conditional Code RulesThe basic structure of a condition is Operand Operator Operand. Terminate Program PrematurelyTerminate PAscript programs prematurely with return.Parent topic: PAscript
Learn the rules for code execution, the supported operators, and the control structures. Precedence RulesExpressions in PAscript are calculated in a specific order.Assigning VariablesAssign variables using simple assignment, tuple assignment, assignment by value, or assignment by reference.ConstantsDeclare variables as constants using the const qualifier.Numerical Operations and OperatorsUse mathematical operators, bit operators, and self-assigned operators in PAscript.Type ConversionsIf the target variable has a different data type than a variable that is included in the calculation or assignment, a type conversion is performed.Text ConcatenationConcatenate texts using sprintf or using the + operator. The operator is an easy way to link text together.Conditional Code RulesThe basic structure of a condition is Operand Operator Operand. Terminate Program PrematurelyTerminate PAscript programs prematurely with return.Parent topic: PAscript
Learn the rules for code execution, the supported operators, and the control structures. Precedence RulesExpressions in PAscript are calculated in a specific order.Assigning VariablesAssign variables using simple assignment, tuple assignment, assignment by value, or assignment by reference.ConstantsDeclare variables as constants using the const qualifier.Numerical Operations and OperatorsUse mathematical operators, bit operators, and self-assigned operators in PAscript.Type ConversionsIf the target variable has a different data type than a variable that is included in the calculation or assignment, a type conversion is performed.Text ConcatenationConcatenate texts using sprintf or using the + operator. The operator is an easy way to link text together.Conditional Code RulesThe basic structure of a condition is Operand Operator Operand. Terminate Program PrematurelyTerminate PAscript programs prematurely with return.Parent topic: PAscript