I am attempting to average two hidden values while placing a condition on one to exclude if response is "0" , effectively just leaving the one hidden value. I know my Xpath isn't the best so any ideas on what I can fix would be appreciated.
from your screenshot above, it looks like domain_1a_score and domain_1b_score are both calculated values, not user input. I'd put each of those in a label to ensure they both evaluate to positive integers.