Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

AND, OR, and NOT

  • Last UpdatedApr 14, 2020
  • 1 minute read

These operators work only on discrete attributes. If these operators are used on integers or real numbers, they are converted as follows:

  • Real to Discrete: If real is 0.0, discrete is 0, otherwise discrete is 1.

  • Integer to Discrete: If integer is 0, discrete is 0, otherwise discrete is 1.

If the statement is: "Disc1 = Real1 AND Real2;" and Real1 is 23.7 and Real2 is 0.0, Disc1 has 0 assigned to it, since Real1 is converted to 1 and Real2 is converted to 0.

When assigning the floating-point result of a mathematical operation to an integer, the value is rounded to the nearest integer instead of truncating it. This means that an operation like IntAttr = 32/60 results in IntAttr having a value of 1, not 0. If truncation is needed, use the Trunc() function.

TitleResults for “How to create a CRG?”Also Available in