Jump to content

return statement not working


sowmithrii

Recommended Posts

consider this

 

 

function test1()
{
    return false;
}

if (test1()==false)
{
    print "Returned false";
}

//same return 
if (!test1())
{
    print "Returned false";
}

 

basically the function if use in the if statement will cause the if block to be ignored

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.