This topic is locked

Problems with IF

8/8/2008 8:32:08 AM
PHPRunner General questions
K
kklh author

Hi
I have a problem with this code :
in event before record updated:
If($values["paged"]=="1" and $oldvalues["paged"]=='0')

{

$values["paged_date"] = now();

}

If($values["Betjenes"]=="1" and $oldvalues["Betjenes"]=='0')

{

$values["betjenes_date"] = now();

}

If($values["Done"]=="1" )

{

$values["Done_date"] = now();

}

return true;
It is only the first IF there is workin not the others.
it should be used for not to update the coloum if the values already has a timestamp.
reg. Kim.

T
thesofa 8/8/2008

try && instead of and

K
kklh author 8/8/2008

try && instead of and


Hi
Thanks it works but why && instead off and ?
regs. Kim

T
thesofa 8/8/2008