Re: [PHP] shortcut if

2004-05-31 Thread John W. Holmes
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; Hmm.. that's odd because if(false) { return false; } always returns false for me... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP

Re: [PHP] shortcut if

2004-05-31 Thread Marek Kilimajer
Bob Lockie wrote: No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; That means $delete_count is always greater than 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shortcut if

2004-05-31 Thread Bob Lockie
No syntax error but this always returns 's'. $add = $delete_count > 0 ? "s" : "x"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php