If statements for more than one term.

Hey, I need to make a program where it checks that all three of something is true, and then does something.

Ex
 
if (v1 == 8 || v2 == 7){cout<<"Hello"<<endl;}

But instead of an OR operator, and need it to check that BOTH are true, and then execute the code.
The && operator.
Aha! Thanks for your help!
Topic archived. No new replies allowed.