Reputation: 1
I am trying to ensure that both conditions are true in my statement. Is the following the correct way to do so?
I'm not sure of my bracket placement etc.
if((functionOne($paramOne) && functionTwo($paramTwo)) == condition){
....
Upvotes: 0
Views: 42
Reputation: 106
The correct way is
if(functionOne($paramOne) == condition && functionTwo($paramTwo) == condition){
Upvotes: 3