There are only 3 parts to IF function:
IF(evaluation expression, values if true, value if false)
but you may nest IF functions. I do not understand what your formula is attempting - it appears to evaluate to =A6. May you explain in words what you want to do, please?