i need help with the if function

Google is your friend, learn how to use it.