Thread: If statements
View Single Post
Old 09-17-2002, 10:08 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
aah, i do get it now..

that is pretty good .. sorry to keep referrencing php, but that is the only thing i can test quickly and know well =)

PHP Code:
<?
function test()
{
    
$i=1;    
    if(
$i==1) return 1;
    
    return 
0;
}

printf(test());
?>
i didn't realize it would exit out of the code after a return. cool, thanks!
sde is offline   Reply With Quote