Jump to content

Are variable IF statements possible?


TapeGun007

Recommended Posts

Is it possible to make a variable If statement?

 

Example:

 

If scenario1 = True Then $statement = "Date>CurrentDate"

 

Else

 

$statement="Date<CurrentDate"

.

.

.

 

If ($statement){

[output results]

}

 

Or... is there just a better way of doing this?

Link to comment
https://forums.phpfreaks.com/topic/196748-are-variable-if-statements-possible/
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.