[jQuery] If/Else/End capability

[jQuery] If/Else/End capability

I've been watching the jquery development for a few months, but only
just started programming with it. For fun and to learn jquery more,
I've done a couple of additions to jquery (plugins?).
The following is a quick demo page of a jQuery if/else/end capability.
It was tested in Win IE 6.0.x and FF 1.5.0.4, using the
http://jquery.com/src/jquery-1.0a.js baseline.
John's made recent SVN changes that affect the modified code, but
looking at his changes it shouldn't be difficult to merge with this
code. As the source comments indicate, this "else/end" capability will
likely work for the following jQuery functions: find (tested), parent,
parents, siblings, not, add, remove, filter
FYI: I can't use 'if' or 'else' for the name of the functions due to
reserved words of the same names. I thought about changing
capitalization and using 'IF' and 'ELSE', but that rubs the Software
Engineer in me the wrong way (in a major way). I ended up using 'jif'
and 'jelse', but am very open to alternatives [I was using jqIf and
jqElse, but like the 'sayability' of jif and jelse].
Here is the demo page: http://dmlair.com/jquery/jqIfElse/
The demo page source contains all the mods to the jquery baseline to
effect the change. Hopefully the page has enough descriptions for you.
Since this is the first of two mods I've made, please let me know any
suggestions or errors -- even if it isn't incorporated into the
baseline.
Thanks.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/