if statement - If clause in Jess -


could 1 please me using if clause in jess, know simple sintax i'm trying use && operand can use 2 conditions, nothing try seems work.

if((<(?x ?y) && (>=(?z ?s))   .... else .... 

jess has regular syntax quite unlike java syntax you're trying emulate. "operators" functions, , use same prefix syntax function calls. it's (op arg1 arg2 ...). parentheses always surround whole expression, not arguments.

so example, java expression a < b (< ?a ?b) in jess. there no && operator, rather, there and function. java if (a < b && c > d) ... looks (if (and (< ?a ?b) (> ?c ?s)) ... in jess.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -