29 April 2011

Syntax Condition Test

Test Condition,Excute Code
if($x >= 0){
print "x is positive number\n";
}

Defind code,Test Condition,Excute
print "x is positive number\n" if($x >= 0);

Excute code,Test Condition,Excute Code
($x >= 0) && print "x is positive number\n";

0 comments:

Post a Comment