Download Graphana - user manual

Transcript
Appendix A: Syntax
The following table describes the whole syntax of the
Graphana script language. Syntax which
is written in bold square brackets is optional:
Name
Application
Syntax
Ide(x1 ,x2 , ...xn )
Description
Executes the operation with the key
Ide with the
given arguments. Returns the result of the exe-
Addition
Subtraction
Multiplication
Division
And
cution
x + y
if
x - y
x * y
x / y
x
Returns the sum of
x
or
y
and
y
or the concatenation
is a String
Returns the dierence of
Returns the product of
Returns the quotient of
x
and
y
x and y
x and y .
If
x
and
y
are
integers then integer division is done
x && y
Returns true if and only if
If
Or
x || y
Unary Minus
Not
Equal to
Not equal to
Less than
Greater than
Less than
or equal
Greater than
or equal
Assignment
-x
!x
x == y
x != y
x < y
x > y
x <= y
Postx
increment
Ide++
Prex
increment
++Ide
Postx
decrement
Ide−−
Prex
decrement
−−Ide
Statements
X1 ;X2 ; ...;Xn
x
is false then
Ide = X
y
x and y
are both true.
is not evaluated
Returns true if and only if
true then
x >= y
y
x
y
or
is true. If
x
is
is not evaluated
Returns the negative value of
x
x is false
Returns true if and only if x is equal to y
Returns true if and only if x is not equal to y
Returns true if and only if x is smaller than y
Returns true if and only if x is greater than y
Returns true if and only if x is smaller than or
equal to y
Returns true if and only if x is greater than or
equal to y
Assigns X to the variable Ide. Creates the variable if it does not exist. Returns X
Increases the value of the (existing) variable Ide
by 1. Returns the value of Ide before it was inReturns true if and only if
creased
Increases the value of the (existing) variable
by 1.
Returns the value of
Ide
Ide
after it was in-
creased
Decreases the value of the (existing) variable
by 1. Returns the value of
Ide
Ide
before it was de-
creased
Decreases the value of the (existing) variable
by 1.
Returns the value of
Ide
after it was de-
creased
Executes
12
X1
to
Xn .
Ide
Returns result of
Xn