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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -