i cant figure this out.
if i type
function myfunction(){
......
if ...
return TRUE;
if ...
return FALSE;
}
why cant i use it like this:
$result = myfunction();
if ($result == TRUE)
...
if ($result == FALSE)
...
or do i have to use:
$result = myfunction();
if ($result == 1)
...
if ($result == 0)
...
or this:
$result = myfunction();
if ($result)
...
if (!$result)
...