Hello! I am creating a conditional calculation for an integer field based on selection/input in a different field. To me, this seemed like a simple nested if statement, so please help me fix where I am going wrong with the logic or formatting.
I've attached a word doc with all of the different attempts, but below is the last one I tried, selection options '2'-'6' are domain values for the field name ObstructionImpacted.
(if(selected(${ObstructionImpacted},’2’),5div10), if(selected(${ObstructionImpacted},’3’),2div10), if(selected(${ObstructionImpacted},’4’),4div10), if(selected(${ObstructionImpacted},’5’),1div10), if(selected(${ObstructionImpacted},’6’),1),0)
So basically the logic I am trying to calculate is:
IF {ObstructionImpacted} = '2' then calculate 5/10
IF {ObstructionImpacted} = '3' then calculate 2/10
IF {ObstructionImpacted} = '4' then calculate 4/10
IF {ObstructionImpacted} = '5' then calculate 1/10
IF {ObstructionImpacted} = '3' then the result is 1
OR the result is 0
Any help would be greatly appreciated! @JamesTedrick