Microvellum Community

"IF" Formula

How do I combine 2 "if" statements, with different results, in the same formula?

=IF(L!Anchor_To_Wall=1,IF(L!Base_Cabinet,-G!Base_Cabinet_Wall_Offset,0))
=IF(L!Anchor_To_Wall=1,IF(L!Tall_Cabinet,-G!Tall_Cabinet_Wall_Offset,0))