Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Give current examples, remove JSONPath

...

Code Block
languagejavascript
themeConfluence
c =>= 5
pageevent:varattr("city") eq!= "Blackfoot"
"Lindon" neq location:city()
weather:curr_temp() < 90
location:city() + ", WA" eq city
== app:cities[random:integer(0, app:cities.length()-1)]
time:now() == time:new("2015-08-08")
5 * (weatherrandom:curr_temp(number(32, 212) - 32) / 9 < 0ent:thresholdTemp

As can be seen from the preceding examples, a number of built-in libraries provide predicates that can be used inside predicate expressions. The documentation for those libraries gives details about their operation.

...

Code Block
languagejavascript
themeConfluence
spicy = cheese like re#(nacho|pepperjack)#;
Info
Note that when the like operator is used inside a JSONPath expression, the second operand, representing the regular expression, is given as a string. '/(nacho|pepperjack)/'

Membership

There is an infix operator for testing membership, ><. The >< operator tests the number or string in the right operand for membership in the map or array given by the left operand. For maps, membership extends to keys only. 

...