I had this clunky statement:
if ($currmemid && $currsector==1 && $edp &!$umsg &!$regmsg )
{ then whatever
but it works inconsistently, sometimes evaluating as false when it should be true and sometimes working correctly
By changing to a double set of conditonals as this, it works 100%
if(!$umsg &!$regmsg){
if ($currmemid && $currsector==1 && $edp ) { then whatever
I'm often tempted to write
if($umsg && $regmsg){ $donothing=0;} else { do what I actually want
- why is this and can anyone clarify this or offer some pointers ?
thanks