Just include the word 'OR' as a key:value into your object and do not insert it
into the array as a new element.
I means var rules = [..., {type:'OR', property:'name', operator:'equal',
value:[1,2]} ,...];
That will allow you to eval something like for(var idx in rules){ switch
rules[idx].type; case 'OR' foo; case 'AND' bar; default ...}
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/02bb790e-4c67-4c37-a30b-d64785f27f97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.