Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

{$between$} with {$odd$} and {$even$}

If you use {$between$} with {$odd$} and/or {$even$}, it will process all records for the {$between$} function.

I am making a list that has two columns.  I process the odd records in one column, and the even records in the other.  In between each record, I add a separator for visual assistance.  However, I get 2 separators between each record because will it skips the appropriate record for display, it still processes the {$between$} as normal.

My second column, I even get a separator before my first record, because it is actually the second (even - #2) record.

Is this by design or an error?  I would think that if the record were skipped, the {$between$} should be skipped as well....

Jeff Kolker
Saturday, January 17, 2004

The more I think about it, the more I assume that fogcreek intended that the {$odd$} and {$even$} be used in the same processing loop, and therefore the {$between$} is acting like it should.

Still, it would be nice to be able to use the {$ between $} only if the record was used...

Jeff Kolker
Saturday, January 17, 2004

*  Recent Topics

*  Fog Creek Home