well, here are some benchmarks

the last snippet posted (the scrunched IIF's) for 10,000 iterations takes (avg) 2293 msecs.

the second-last snippet posted (the combined solution with BGR and IIF's seperate) takes (avg) 2874 msecs for 10,000 iterations.

So it would seem that smaller and scrunched helps with the numbers. Should try the IF-ENDIF solution for speed though.

[ 03. November 2003, 18:49: Message edited by: Shawn ]