AnsweredAssumed Answered

Conditional Calculations Logic?

Question asked by Sunny.Fleming on Dec 13, 2018
Latest reply on Dec 13, 2018 by Sunny.Fleming

I have a field that I'm calculating based off inputs from other fields. If a tree is dead, it gets a score of 8. If a tree isn't dead, then the score is calculated by adding two other values together. I have written:

 

if(selected(${Dead_Tree},'yes'),8,''),if(selected(${Dead_Tree},'no'),'int(${Highest_Potential})+int(${Total_Failure})','')

 

However I keep getting "bad node" errors. How do I write the proper expression?

Outcomes