Actually after testing
ScriptableObject.putProperty(scope, "b", cx.javaToJS(b,
scope));
ScriptableObject.putProperty(scope, "c", cx.javaToJS(b,
scope));
//scope.put("poutana", scope,cx.javaToJS(b, scope) );
Object result;
result = cx.evaluateString(scope, "b && c", null, 0, null);
System.out.print(result);
b c result
false false false
false true false
true false true
true true true
it seems ok but i dont know why true && false returns true..
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino