MODSEL - SELECTIVITY MANAGEMENT IN ASYCUDA++
Ó UNCTAD - SITE (V1.15)
6.30
Within Valuation Control
Functions
Function
Usage
RoundInf(x)
If N _ x < N + 1 then N
RoundSup(x)
If N < x _ N + 1 then N + 1
Round(x)
If N _ x < N + 0.5 then N else N + 1
Min(x, y)
If x < y then x else y
Max(x, y)
If x > y then x else y
Sqr(x)
Square x * x
Abs(x)
Absolute value of x
CurRate(s)
Exchange Rate for currency s
DisplayErr(s)
Display the string on the screen
DisplayErrStop(s)
Display error and stop validation
Keywords
Keyword
Usage
Formula
Formula "Formula name"
Criteria
Criteria Criteria name
Assignment
Assignment name
If
If condition Then statements [Else statements] Endif
Then
If condition Then statements [Else statements] Endif
Else
If condition Then statements [Else statements] Endif
Endif
If condition Then statements [Else statements] Endif
and
Condition 1 and condition 2
or
Condition 1 or condition 2
not
Not (condition 1)
(
Open parenthesis
)
Close parenthesis
IS
Data element IS expression; (assignment statement)
:=
Data element:= expression; (assignment statement)
=
Expression 1 = expression 2
EQ
Expression 1 EQ expression 2
<
Expression 1 < expression 2
LT
Expression 1 LT expression 2
<=
Expression 1 <= expression 2
LE
Expression 1 LE expression 2
>
Expression 1 > expression 2
GT
Expression 1 GT expression 2
>=
Expression 1 >= expression 2
GE
Expression 1 GE expression 2
<>
Expression 1 <> expression 2
NE
Expression 1 NE expression 2
;
End of statement
+
Expression 1 + expression 2
Plus
Expression 1 Plus expression 2
-
Expression 1 - expression 2
Minus
Expression 1 Minus expression 2
*
Expression 1 * expression 2
Mul
Expression 1 Mul expression 2
/
Expression 1 / expression 2
Div
Expression 1 Div expression 2
,
Function( expression 1, expression2, ...)