2 codes in 1 code


I want to make a code that when my network is DATA and if my wifi is DISABLED he need to show the text "WARNING WARNING" but i cant figure out how to get to different codes in one code because he shows WARNING WARNING if wifi is DISABLED but then network is OFF. Can you please tell me how to make this code?

Thank you