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

compareto

compareto

The compareto analytic compares two given strings. The value 0 if 2
nd
string is lexicographically equal to the 1
st
string; a value less than 0 if 2
nd
string is lexicographically greater than 1
st
string; and a value greater than 0 if the argument is a 2
nd
string lexicographically less than 1
st
string.

Syntax

compareto(string1, string2)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
string1
Required
The first string that you want to compare.
string2
Required
The second string that you want to compare.
Example
when 1 compare c with compareto(c.string1, c.string2) as result<0 then response with body=”${result}”
The following table describes the result for the event property value that you pass:
Usage
Description
Result
s.string1=hello
s.string2=welcome
Since hello comes before welcome
greater than zero

0 COMMENTS

We’d like to hear from you!