I have a simple if statement (it's actually part of a much larger if statement, but this is the part giving me issues) that I can't figure out and I'm hoping to get some help on.
The issue I'm having is that the result always returns "hh", even when I select "vehicle" and "unk" or "no". In that situation I am hoping for a result of "vv", since the other selections shouldn't be possible when "vehicle" is not selected for the field ${human_loss_category_new_nest}. Any thoughts? I'm sure it's probably just syntax but I can't figure it out. Thank you!!
if((${failure_category_new_nest} = "human" and (${human_loss_category_new_nest} = "eggs taken" or "eggs trampled" or "eggs destroyed") and ${deliberate_new_nest} = "yes"), "vz",
if((${failure_category_new_nest} = "human" and (${human_loss_category_new_nest} = "eggs taken" or "eggs trampled" or "eggs destroyed") and (${deliberate_new_nest} = "unk" or "no")), "hh",
if((${failure_category_new_nest} = "human" and ${human_loss_category_new_nest} = "vehicle" and (${deliberate_new_nest} = "unk" or ${deliberate_new_nest} ="no")), "vv")))