Re: conditional statement problems

From: Date: Tue, 01 Oct 2002 07:31:10 +0000
Subject: Re: conditional statement problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118325@lists.php.net to get a copy of this message
Hi, Tuesday, October 1, 2002, 5:11:08 PM, you wrote: PO> $title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0; PO> Can anyone tell me why this is not evaluating correctly (returning a PO> value of 1) when $adTitle is an empty string? It is right according to your expression, try ($adTitle != "") -- regards, Tom

« previous php.general (#118325) next »