docs.roxen.comView this page in a printer friendly mode
DocsPike7.0TutorialExpressions
Copyright © 2001, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

Some Terminology
Arithmetical Operations
Operations on Complex Types
Comparison
Logical Expressions
Bitwise Operations
Operations on Sets
Indexing
Assignment
Type Conversions
The Comma Operator
Call and Splice
Operator Precedence and Associativity

Expressions

Expressions are made from operands (such as 47 and x) and operators (such as + and &&). Simple expressions such as x + 47 usually work just as anyone with some simple maths would expect. More advanced expressions, such as x <= 47 && f(x, 47), work as any C or C++ programmer would expect. Other expressions, such as those involving mappings or set operations, are specific to Pike.