Visara Master Console Center Scripting Guide Instrukcja Użytkownika Strona 50

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 262
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 49
Chapter 3 Script Syntax
Scripting Guide 50
Operators
Mathematical
The following mathematical operators may be used in numeric
expressions:
Character Operator
+ - Addition and Subtraction
* / % Multiplication, Integer division, and Modulo
- Unary Minus
:= Assignment
Table 6. List of Mathematical Operators
Boolean
In Boolean expressions:
Zero is interpreted as FALSE and all other values are interpreted as
TRUE.
Boolean expressions that evaluate to FALSE have a value of 0.
Boolean expressions that evaluate to TRUE have a value of 1.
Boolean expressions consist of string and numeric expressions that
evaluate to a TRUE or FALSE value. Often, a Boolean comparison
operator is used, for example:
IF %A + %B == 4
This is not always the case. For example:
IF %A //same as IF %A == TRUE
To stretch the realm of Boolean expression, consider the following
example:
%Sum := (%A == %B) + 4
//%Sum will always be either 4 or 5
// (%A == %B) will always evaluate to true (1)
// or false (0).
Przeglądanie stron 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 261 262

Komentarze do niniejszej Instrukcji

Brak uwag