Multiple conditions

Hi,

does anyone know how to do an if statement that will only work if all conditions are met?

for example, I have been using this code

if ((condition1) || (condition2) ){

} else {

}

in this case it only checks to see if one or the other is fulfilled. Is there a way to make it check that both condition1 and condition2 are fulfilled before it does it’s stuff?

Any help would be greatly appreciated.

Thanks