I've created a survey for address collection and was wanting to create a multi-conditional instance_name. Within the addresses, some could have a prefix or a suffix with the road. I've created a select_one field that allows the user to determine if a prefix or suffix exists.
I want to do something like if prefix exists and suffix exists print 123 E Main W St, else if prefix exist and suffix doesn't exist print 123 E Main St, else if prefix doesn't exist and suffix does exist print 123 Main W St, else if prefix doesn't exist and suffix doesn't exist print 123 Main St.
What's the best way to create something like above for the instance_name?