MACROMEDIA COLDFUSION 5 - INSTALING AND CONFIGURING SERVER Manuale delle Istruzioni Pagina 34

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 154
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 33
24 Chapter 2 CFML Basics
Arithmetic operators
The following table lists the arithmetic operators that ColdFusion supports:
String operator
The following table describes the one ColdFusion string operator that is a concatenation
operator:
>GT
GREATER THAN
Tests for greater than.
>= GTE,
GREATER THAN OR EQUAL TO
Tests for greater than or equal to
< > IS NOT, NEQ,
NOT EQUAL
Tests for nonequality.
CONTAINS Tests whether a value is
contained within a second
value.
DOES NOT CONTAIN Tests whether a value is not
contained within a second
value.
Operators Description
+, -, *, / The basic arithmetic operators: addition, subtraction, multiplication, and
division. In the case of division, the right operand cannot be zero.
+, - Unary arithmetic operators for setting the sign of a number either positive
or negative (+ or -).
Mod Returns the remainder (modulus) after a number is divided by a divisor.
The result has the same sign as the divisor. The right operand cannot be
zero; for example: 11 MOD 4 is 3.
\ Divides two integer values. Use the \ (trailing slash) to separate the
integers. The right operand cannot be zero; for example: 9 \ 4 is 2.
^ Returns the result of a number raised to a power (exponent). Use the ^
(caret) to separate the number from the power. The left operand cannot be
zero; for example: 2 ^ 3 is 8.
Operator Description
& Concatenates strings.
Nonsupported
logical operator
Equivalent ColdFusion decision
operator Description
Vedere la pagina 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 153 154

Commenti su questo manuale

Nessun commento