Real quick syntax question

Hi i just cant figure out the correct syntax for this, here is what i have:
function moveForward(event)
if hitDown == true then
myObject:applyAngularImpulse(15)

end
end

This works of course, what i want to do is

if hitdown == true & if speedUP == true then
myObject:applyAngularImpulse(15)

end
end

so i want it to check both variables before proceeding, can i get some help on the correct way to type it ? thanks [import]uid: 19620 topic_id: 6098 reply_id: 306098[/import]

https://docs.google.com/document/pub?id=1FzdK7-woueGMxjnqPY3bjeFAu8b6mCgndui2NlwPu3s&pli=1

scroll down to “operators” [import]uid: 12108 topic_id: 6098 reply_id: 20872[/import]

What a great document, thank you! [import]uid: 19620 topic_id: 6098 reply_id: 20885[/import]