I have some huge blocks of code and I would like to avoid using elseif so the question is : Is it possible to construct an IF function with two possibilities in the same statement ? something like
if( a < b) or (b=0) { statement }
I have some huge blocks of code and I would like to avoid using elseif so the question is : Is it possible to construct an IF function with two possibilities in the same statement ? something like
if( a < b) or (b=0) { statement }
if( ($a < $b) || ($b==0) )
{
//do something
}
or even better
if( ($a < $b) || (0==$b) )
{
//do something
}
so you don't accidentally assign 0 to $b.