Crestron SIMPL+ Especificações Página 27

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 26
Crestron SIMPL+
Software
Expressions
As reading through the later parts of this guide, as well as the latest revision of the
SIMPL+ Language Reference Guide (Doc. 5797), the term expression is mentioned
in many places. For example, in describing the syntax of the if-else construct, it may
be described as the following:
if (expression1)
{
// code to execute
}
else if (expression2)
{
// code the execute
}
In the above example, expression1 and expression2 can be any valid SIMPL+
expression. This section describes what is and what is not an expression.
An expression in SIMPL+ is anything that consists of operators and operands.
Operators were discussed previously in this section, and operands are simply the
things on which operators act. For example, refer to the following simple expression.
x + 5
In this expression the operator is the addition operator (+), and the operands are x
and 5. Expressions can contain constants, variables, and function calls in addition to
operators. One expression may be made up of many smaller expressions. The
following are all valid SIMPL+ expressions.
max(x,15)
y * x << z
a = 3
(26 + byte(aString,i) mod z = 25
Expressions can range from the very simple to the very complex. Also note that the
last two expressions contained an equal sign. It is very important to recognize that
this operator can have two different meanings based upon where it is used. In the
first example above, the equal sign can serve as an assignment operator (assign the
value 3 to the variable a) or as an equivalency comparison operator (does the
variable a equal 3?). However, an expression cannot contain an assignment (it would
then become a statement, discussed in “Statements” on page 24), so it is indeed
recognized as a comparison operation. In the second case, the equal sign also serves
as a equivalency comparison operator. Here there is no ambiguity since a value
cannot be assigned into an expression (as opposed to a variable).
Expressions always evaluate to either an integer or a string. Refer to the following
example.
x + 5 // this evaluates to an integer
chr(i) + myString // evaluates to a string
a = 3 // evaluates to 1 if true, 0 if false
b < c // evaluates to 1 if true, 0 if false
The last two expressions are comparisons. Comparison operations always result in a
true or false value. In SIMPL+, true expressions result in a value of 1 and false
expressions result in a value of 0. Understanding this concept is key to performing
decision making in SIMPL+. In reality, any expression that evaluates to a non-zero
value is considered TRUE. This concept is discussed in “Controlling Program Flow:
Programming Guide – DOC. 5789A SIMPL+
23
Vista de página 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 59 60

Comentários a estes Manuais

Sem comentários

Da-Lite 84400LS manuali

Manuali dei proprietari e guide per l'utente per Schermi per proiezioni Da-Lite 84400LS.
We fornisce 1 manuali pdf Da-Lite 84400LS per scaricare gratuitamente in base al tipo di documento: Scheda Tecnica






Più prodotti e manuali per Schermi per proiezioni Da-Lite

Modelli Tipo di Documento
84762 Scheda Tecnica   Da-Lite Ascender Electrol, 2 pagine
84816 Scheda Tecnica   Da-Lite Fast-Fold, 6 pagine
38837 Scheda Tecnica   Da-Lite 38837 projection screen, 2 pagine
70280 Scheda Tecnica   Da-Lite Large Cosmopolitan Electrol, 2 pagine
25943 Scheda Tecnica Da-Lite 25943 projection screen, 1 pagine
89897 Scheda Tecnica   Da-Lite Tensioned Cosmopolitan Electrol, 5 pagine
92601 Scheda Tecnica   Da-Lite Advantage Deluxe Electrol, 2 pagine
90611 Scheda Tecnica   Da-Lite Versatol, 1 pagine
37566LS Scheda Tecnica   Da-Lite Contour Electrol, 3 pagine
95746K Scheda Tecnica   Da-Lite Heavy Duty Fast-Fold Deluxe Screen System, 2 pagine
Cosmopolitan Electrol Scheda Tecnica   Da-Lite 79013LS projection screen, 2 pagine
23971 Scheda Tecnica   Da-Lite IDEA Thin, 2 pagine
89722 Scheda Tecnica   Da-Lite Designer Contour Electrol, 2 pagine
24123 Scheda Tecnica   Da-Lite IDEA Magnetic, 2 pagine
75599S Scheda Tecnica   Da-Lite 75599S projection screen, 2 pagine
34238 Scheda Tecnica Da-Lite Heavy Duty Deluxe, 6 pagine
20951 Scheda Tecnica   Da-Lite Tensioned Conference Electrol, 2 pagine
20985 Scheda Tecnica   Da-Lite Tensioned Conference Electrol, 2 pagine
39717V Scheda Tecnica Da-Lite Da-Snap, 13 pagine
23663 Scheda Tecnica   Da-Lite UTB Contour, 2 pagine