Jump to content

How to do this IF condiditon?


lopes_andre

Recommended Posts

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

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.