Hi guys, I am not sure this is right or not.
If I have one variable whose value is true or false and I want to use it in an if statement I could easily do
if(variable1){
//do this and that
}
but I want to check 2 variables I assume I will have to explicitly test whether they are true or false like so
if((variable1 == true) && (variable2 == true)){
//do this and that
}
I can't have a situation like
if((variable1) && (variable2)){
//do this and that
}
correct?