Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

Numeric Operators

Numeric Operators

You use the numeric operators to compare numeric values.
You can use the following numeric operators while writing rules:

    = (equal)

    != (not equal)

    > (greater than)

    >= (greater than or equal to)

    < (less than)

    <= (less than or equal to)

If you use numeric operators to compare text, the rule evaluates as false.
You can use the numeric operators for the following sets of conditions:
  • When the rule includes two items, the greater than operator verifies that the left hand item is greater than the right hand item.
    For example, in the following rule, the greater than operator verifies that all three stock event prices are greater than the specified stock price:
    WHEN 1 stock WITH price > 10
    The rule evaluates true after each of the following events arrives:
    Topic: Stock Event 1, Symbol EFG, Price 11 Event 2, Symbol ABCD Price 12
  • When the rule includes an item and a list, the greater than operator verifies that every item in the list must be greater than the value.
    For example, in the following rule, the greater than operator verifies that all three stock event prices are greater than the specified stock price:
    WHEN 3 stock WITH price > 10
    The rule evaluates true after each of the following events arrives:
    Topic: Stock Event 1, Symbol EFG, Price 12 Event 2, Symbol ABCD Price 11 Event 3, Symbol XYZ Price 12
  • When the rule includes two lists, the greater than operator verifies that all of the items in one list are greater than all of the items in the other list.
    Consider a watchlist, MyPrices with values 10, 15, and 12. In the following rule, the greater than operator verifies that all three stock event prices are greater than all of the prices in the MyPrices watchlist:
    WHEN 3 stock WITH price > watchlist:MyPrices
    The rule evaluates true after the third of the following events arrives:
    Topic: Stock Event 1, Symbol EFG, Price 19 Event 2, Symbol ABCD, Price 17 Event 3, Symbol XYZ, Price 25

0 COMMENTS

We’d like to hear from you!