0

I have this JessRule code

     (ServiceConfiguration
        (endpoint ?j_endpoint &:(call ?j_advertiserEndpoint equals ?j_endpoint))
        (config ?j_config &:(call ?j_config containsSetting "verbs-count"))
     )

Does the code mean that it assigns the return value of (call ?j_advertiserEndpoint equals ?j_endpoint) to j_endpoint

1 Answers1

1

Ampersands (&) represent logical "and", while pipes (|) represent logical "or." A colon (:) followed by a function call is a logical expression (constraint) that is true if the function returns the special value TRUE.

The search for endpoint facts succeeds if it has a single field that equals the return value from the call.

No assignment takes place.

laune
  • 31,114
  • 3
  • 29
  • 42
  • Where do you learn JessRule, I can't find any source – Ana Marie De Vera May 28 '22 at 15:08
  • @AnaMarieDeVera The site originally publishing Jess appears to have closed down. An apparently quite comprehensive secondary source is here: https://www.csie.ntu.edu.tw/~sylee/courses/jess/docs/language.html – laune May 29 '22 at 16:15