Avaya Writing Technician Interface Scripts Manual do Utilizador Página 47

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 116
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 46
Command Reference
117382-A Rev. A 2-19
Example 2
In the following script, variable name b is assigned the sum of variable name a
plus 1.
setenv a 1
let b=$a+1
The let command evaluates an expression from left to right. You can use
parentheses to change the order of the evaluation.
Use the arithmetical and logical operators listed in T
able 2-2 and Table 2-3 with
the
let command.
Table 2-2. Arithmetical Operators
Operation Symbol
Addition +
Subtraction -
Multiplication *
Division /
Exponent **
Remainder %
Table 2-3. Logical Operators
Operation Symbol Definition
1’s complement ~ Bit negation operator that provides the
bitwise complement of an integer
AND & Arithmetic AND
Inclusive-OR | Arithmetic inclusive OR
Exclusive-OR ^ Arithmetic exclusive OR
Logical shift left << Bit-shift to the left, far-right bit set to zero
Logical shift right >> Bit-shift to the right, far-left bit set to zero
Vista de página 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 115 116

Comentários a estes Manuais

Sem comentários