@Override public Object render(Map<String, Object> context) { Object a = lhs.render(context); Object b = rhs.render(context); return super.asBoolean(a) && super.asBoolean(b); }
@Override public Object render(RenderingContext context) { Object a = lhs.render(context); Object b = rhs.render(context); return !LValue.areEqual(a, b); }
@Override public Object render(Context context) { Object collection = lhs.render(context); Object needle = rhs.render(context); if (super.isArray(collection)) { Object[] array = super.asArray(collection); return Arrays.asList(array).contains(needle); } if (super.isString(collection)) { return super.asString(collection).contains(super.asString(needle)); } return false; }