Testing for empty value

2004-08-05 Thread mike
I have the following code print date times,@date,br; if ($ti1){ print time 1 is not empty; } else { print time 1 is empty; } If there is a value it works but not if there isn't ie: if there is a value it prints time 1 is not empty, but if there is not nothing comes out anyone any ideas? -- To

Re: Testing for empty value

2004-08-05 Thread Jenda Krynicky
From: mike [EMAIL PROTECTED] I have the following code print date times,@date,br; if ($ti1){ print time 1 is not empty; } else { print time 1 is empty; } If there is a value it works but not if there isn't ie: if there is a value it prints time 1 is not empty, but if there is not

Re: Testing for empty value

2004-08-05 Thread Randy W. Sims
On 8/5/2004 6:23 PM, Jenda Krynicky wrote: From: mike [EMAIL PROTECTED] I have the following code print date times,@date,br; if ($ti1){ print time 1 is not empty; } else { print time 1 is empty; } If there is a value it works but not if there isn't ie: if there is a value it prints time 1 is not

RE: Testing for empty value

2004-08-05 Thread Charles K. Clarkson
From: mike mailto:[EMAIL PROTECTED] wrote: : I have the following code : : print date times,@date,br; : if ($ti1){ : print time 1 is not empty; : } : else { : print time 1 is empty; : } : : If there is a value it works but not if there isn't : ie: if there is a value it prints time 1 is not :