How to compile code only for both Android and iOS?

I know about the #if UNITY_ANDROID and #if UNITY_IOS, but how do you combine them both? I’ve searched on google and on here and can’t find an answer. I’ve tried doing one above the other but that doesn’t seem to work.