if and if statements

Trying to create a formula where two or more arguments are required. For example
Cell A1 contains 1
Cell A2 contains Y
Cell A3 contains 290

Formula wanted - IF Cell A1 is 1 and Cell A2 is Y and Cell A3 is less than 300 then do something (1) or do something else (2).

I can work with the 1 and 2 (the things to do) but having a problem with the IF Statement

Hello,

=IF(AND(A1=1,A2="Y",A3<300),do_something(1),do_something_else(2))