HPlogo System Debug Reference Manual > Chapter 2 User Interface

Expressions

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

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




Operators


Operator Precedence