Jump to content

if statement (break)


mishuk

Recommended Posts

Can something be used in an if statement that works like a break; in a switch statement.

I would like to exit the if statement and carry on with the rest of the script if a certain value is true

 

e.g.  if $var = 1 {

            exit if and carry on with script

      } else {

            [statement]

      }

 

rest of script....

Link to comment
https://forums.phpfreaks.com/topic/43250-if-statement-break/
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.