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
Post a Comment