explain undefined effect on logical expressions