Need to create a new variable with conditions from multiple variables

A reprex (short for reproducible example) has to be, by definition, reproducible, and we can't reproduce your code since you are not providing sample data on a copy/paste friendly format (i.e. ha data frame) thus getting you into an endless back and forth
Please try to follow this guide an make a proper reproducible example illustrating your issue