I need help with something, probably simple...

I want to have an "If (something AND something) then....."
but when I try using && I get errors...

Here's what I tried (basically)
Code:
if (GetAsyncKeyState(VK_F8) && x > 1) {
     action... }
Thanks for any help.