Health Savings Account Formula

I NEED help entering a formula for a HSA! Is there a way to type in an "IF" formula to figure out the employer contribution amount? Example - IF employee contribution is equal to $X.XX then employer contribution is $X.XX. If this is possible, what is the formula?