TeddyKiller Posted April 20, 2010 Share Posted April 20, 2010 I have a function. Yes, a function. It has a return true, and return false. Whats the quickest way to check if true or false. I have this.. if(myfunction() == false) { //its a return false! } else { //its a return true! } Quote Link to comment Share on other sites More sharing options...
Gekk0 Posted April 20, 2010 Share Posted April 20, 2010 yeah that should work make sure your function is returning the correct values though so like return true; or return false; am I making sense? Quote Link to comment Share on other sites More sharing options...
TeddyKiller Posted April 20, 2010 Author Share Posted April 20, 2010 Ok cheers! Quote Link to comment Share on other sites More sharing options...
ignace Posted April 20, 2010 Share Posted April 20, 2010 make sure your function is returning the correct values though He's using == so "", 0, 0.0, "0", array(), null should all pass myfunction() == false Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.