if (button01 && button02 && button03 && button04)

would be the right syntax.
saying if(button1) is equivalent to if(button1==true)
&& means 'and'
that way makes a less long statement.

gparis