AnsweredAssumed Answered

If statement calculation, Survey123

Question asked by mkwise82 on Mar 5, 2018
Latest reply on Aug 1, 2018 by JTedrick-esristaff

I am working on creating form with multiple repeats/questions.  What I am trying to do is calculate an answer to a question based on the which answer was chosen from the previous select_one question.  I will use sample data for simplicity sake. 

select_one color: green, blue, red, yellow

calculation results based on color chosen (what I am trying): if(selected(${color}, 'red', 'Cardinal', if(selected(${color}, 'green', 'Parrot', if(selected(${color}, 'blue', 'Bluebird', if(selected(${color}, 'yellow', 'Finich', 'N/A'))))))))

 

I have received multiple different errors for trying this multiple ways, the current error is "requires 3 arguments, only provided 1"...Sometimes I get "requires 3 arguments, only provided 4 or 5 etc"

 

What am I doing incorrectly?

Outcomes