Using if else statement
-
Hi, Can you please tell what is issue in following statement as it is giving incorrect answer. If I remove other conditions and only use one, it gives correct answer.
(function(){ if (AND(fieldname6 == 'Buying additional residence', fieldname8 == 'Yes')) { if (fieldname7 < 40000) { return fieldname7*0; } else if (40000 < fieldname7 < 250000) { return (fieldname7-40000)*0.03; } else if (250000 < fieldname7 < 925000) { return SUM(250000*0.03,(fieldname7-250000)*0.08); } } })();
- The topic ‘Using if else statement’ is closed to new replies.