how would I set this so that my if statements only works if the second option is not set.
$options[options1] && $options[option2]
{
// this would be evaluated
}
So what I need is for this to work only if the first of these options is true and the second is false. They are both coming from the database and the second option is a string value.
This will be evaluated if
$options[option2]evaluates to false:This will be evaluated if it is not set
This is a nicer version of the first:
Be careful of the string
"0". It is evaluated asFALSE