Re: [PHP-DEV] PHP still can't compare...

2001-12-04 Thread derick
Hello, this has to do with operator precendence. Please ask for this kind of support questions on the [EMAIL PROTECTED] mailinglist. Derick On Tue, 4 Dec 2001, Matthew Hagerty wrote: > Greetings, > > Another problem with PHP trying to make a simple comparison and failing... > > This works: > >

[PHP-DEV] PHP still can't compare...

2001-12-04 Thread Matthew Hagerty
Greetings, Another problem with PHP trying to make a simple comparison and failing... This works: $iQty = -1; if ( isset($g_aForm["qty_$iKey"]) AND is_numeric($g_aForm["qty_$iKey"]) ) $iQty = $g_aForm["qty_$iKey"]; But this does not: $iQty = ( isset($g_aForm["qty_$iKey"]) AND is_numer