Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Compatibility of Operators with Types

Rule language grammar defines operators compatibility with types.

Compatibility is described as follows:

Operator Matrix
| Right Side of Operator
--- | ---
|  | str | int | lon | du | boo | ent | obj | dat
Left Side of Operator |
    str
| =, +, eq, cmp, inst | + | + | + | + | + | =, +, eq, cmp, inst | +
    int
| + | =, math, eq, cmp | =, math, eq, cmp | =, math, eq, cmp |  |  | =, math, eq, cmp |
    lon
| + | =, math, eq, cmp | =, math, eq, cmp | =, math, eq, cmp |  |  | =, math, eq, cmp |
    dou
| + | =, math, eq, cmp | =, math, eq, cmp | =, math, eq, cmp |  |  | =, math, eq, cmp |
    boo
| + |  |  |  | =, eq |  | =, eq |
    ent
| + |  |  |  |  | =, eq, inst | =, eq, inst |
    obj
| =, +, eq, cmp, inst | =, math, eq, cmp | =, math, eq, cmp | =, math, eq, cmp | =, eq | =, eq, inst | =, eq, inst | =, eq, inst
    dat
| +, |  |  |  |  |  | =, eq, inst | =, eq, cmp, inst

Abbreviation | Meaning and Notes
--- | ---
    boo
| Boolean.
    cmp
| Comparison operators: <, >, <=, >=
    dat
| Date/Time
    dou
| Double
    ent
| Entity. Type includes Concept, Event, and Scorecard. Both operands must either be of the same type or have a subtype-supertype relationship
    eq
| Equality operators: ==, !=
    inst
| instanceof
    int
| Integer
    lon
| Long
    math
| Numerical operators: unary +, unary -, =, - , *, /, %
    obj
| Object
    str
| String

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.