Efficiency of IF statements
#5

Quote:
Originally Posted by Bharel
Посмотреть сообщение
So as soon as usuallyfalse is false, and it gets to the && part, it stops executing, without checking the next statement?
Yes, try this:
Код:
if( 1 == 0 && print( "Hey" ) == 0 )
{
    print( "Hi !" );
}
Reply


Messages In This Thread
Efficiency of IF statements - by Bharel - 19.06.2013, 20:28
Re: Efficiency of IF statements - by Vince - 19.06.2013, 20:31
Re: Efficiency of IF statements - by Emmet_ - 19.06.2013, 20:33
Re: Efficiency of IF statements - by Bharel - 19.06.2013, 20:33
Re: Efficiency of IF statements - by IstuntmanI - 19.06.2013, 20:55

Forum Jump:


Users browsing this thread: 2 Guest(s)