lopes_andre Posted February 21, 2010 Share Posted February 21, 2010 Hi, I need to test a Function that returns TRUE or FALSE and a variable that is NULL or have a value. How can I test the condition: IF function returns False OR variable is null ---> do this. Is something like this? if (run() == FALSE or $pdata is null) { do things } Can someone help me? Best Regards, Quote Link to comment https://forums.phpfreaks.com/topic/192839-how-to-do-this-if-condiditon/ Share on other sites More sharing options...
Alex Posted February 21, 2010 Share Posted February 21, 2010 if(!run() || empty($pdata)) { // ... } Quote Link to comment https://forums.phpfreaks.com/topic/192839-how-to-do-this-if-condiditon/#findComment-1015757 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.