Operators

From CEW

Jump to: navigation, search

Contents

[edit] NOT

! for NOT is supported by Railo 2 (everywhere) and ColdFusion 8 (cfscript only).

[edit] AND

&& for AND is supported by Railo 2 (everywhere) and ColdFusion 8 (cfscript only).

[edit] OR

|| for AND is supported by Railo 2 (everywhere) and ColdFusion 8 (cfscript only).

[edit] CONTAINS

CT for CONTAINS is supported by Railo 2.

[edit] NCT

NCT for DOES NOT CONTAIN is supported by Railo 2.

[edit] EXP

EXP for ^ is supported by Railo 2.

[edit] Shorthand

ColdFusion 8 supports the following shorthand operators:

  • x++ for x = x + 1
  • x += y for x = x + y
  • x -= y for x = x - y
  • x *= y for x = x * y
  • x /= y for x = x / y
  • x %= y for x = x % y
Personal tools