Hi, possibly something like case_when():
case_when()
It would be good if you could provide a reproducible example though.