Help for this page
if( $var1 == 1 ) { if( $var2 == 2 ) { doSomething(); } }
if( $var1 == 1 && $var2 == 2 ) { doSomething(); }