Works for me! Have you tried using:

$odd_even = ($cnt % 2) ? 'ODD' : 'EVEN';

>>> Martijn van Exel <[EMAIL PROTECTED]> 06/22/01 11:56am >>>
Dear subscribers.

Why the $! does

(int($cnt/2) == ($cnt/2))

not return TRUE for an even $cnt and FALSE for an odd $cnt ?

What _is_ the way to test for odd/even then!?

Background: I am trying to do alternating BGCOLOR in <TR>s in order 
to improve legibility of a long table.

Please CC, I am on digest.

-- 
Martijn van Exel, [EMAIL PROTECTED] 

WEBkitchen
Waterstraat 11
3511 BW Utrecht
tel/fax 030-6701818

http://www.webkitchen.nl



This e-mail and any files transmitted with it are confidential 
and solely for the use of the intended recipient. 
ONdigital plc, 346 Queenstown Road, London SW8 4DG. Reg No: 3302715. 

Reply via email to