HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 User Interface

Expressions

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Expressions are formulas for computing new values from a collection of operators and their operands. Operator precedence, in combination with the use of parentheses, determines the order of expression evaluation. When two or more operators of the same precedence occur at the same level of evaluation, they are evaluated from left to right.

Expression operands may be literals, variables, functions, macros, and symbolic procedure names, each of which denotes a value of some type. Examples of valid expressions are:

$12

Simple numeric literal

pc + 4

Predefined variable

FOPEN + 12

Symbolic procedure name

[dst 2.104]

Indirection - contents of DST 2.104

(count < 5) and (q>200)

Boolean expression with relational operators

strup('hello') + "MOM"

Standard function result

Feedback to webmaster