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, 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)) { // ... } 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
Archived
This topic is now archived and is closed to further replies.