Hello!
I need a bit of help with an arcade expression and optional fields.
I am running a survey 123 where people can submit a name/contact information (phone AND/OR email), or choose not to and stay anonymous. I want to set up the expression to return either
1) a phone number
2) an email
3) both a phone number and an email
4) neither
While I can write IIF statements to find if the field is empty or not, I am not sure how to write statements that will return one or another, both, or neither. Has anyone done something like this before and been able to provide guidance?
Here is a simple flow chart to help get an idea of returns and show some potential outputs.

Thank you in advance!