ok, this makes no sense.
if i use:
HTML:
if( (t46 == 0) && (pass == 1) )
{
emitMessageBoxRed("pass 1 can not = '' or '0' ");
}
else if( (t47 == 0) && (pass == 2) )
{
emitMessageBoxRed("pass 2 can not = '' or '0' ");
}
else if( (t48 == 0) && (pass == 3) )
{
emitMessageBoxRed("pass 3 can not = '' or '0' ");
}
else
{
function();
}
then, first Print("something"); in emitMessageBoxRed, is not called, but
1 can not = '' or '0', 2
can not = '' or '0', or 3
can not = '' or '0', is printed, depending on value of
pass, and rest of emitMessageBoxRed is not called, AND function(); of else is called
if
i use:
HTML:
if( (t46 == 0) && (pass == 1) )
{
Print(" ( (t46 == 0) && (pass == 1) )");
emitMessageBoxRed("pass 1 can not = '' or '0' ");
}
else
if( (t47 == 0) && (pass == 2) )
{
emitMessageBoxRed("pass 2 can not = '' or '0' ");
}
else if( (t48 == 0) && (pass == 3) )
{
emitMessageBoxRed("pass 3 can not = '' or '0' ");
}
else
{
function();
}
then
( (t46 == 0) && (pass == 1) ), none of emitMessageBoxRed(), regardless of value of
pass, is called, AND function(); of else is called