I converted Question# to a dimension (right click Question#> Convert to Dimension). Then created this calculated field:
when 1 then
if [Sr Answer]=0 OR [Sr Answer]= 1 OR [Sr Answer]=2 OR [Sr Answer]=3 then [Ts Task Number]
I believe this is right. And as a tip for future calculations, the language used in tableau is a bit different than what you're using. I don't know any helpful tips other than look at the errors that pop up and try to solve them
Thanks for the response Lisa. That solved it.