IF ELSE
-
I’m having trouble with the following IF ELSE statement. I’m calculating a rate based on a calculated field value. Is my syntax wrong? I’m searching for examples, but haven’t found something that works.
(function(){
if(AND(fieldname5>0,fieldname5<6)) {return fieldname5*29;}
if(AND(fieldname5>5,fieldname5<10) {return fieldname5*27;}
if(AND(fieldname5>9,fieldname5<15) {return fieldname5*25;}
if(AND(fieldname5>14,fieldname5<20) {return fieldname5*24;}
if(fieldname5>19) {return fieldname5*23;}
})()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘IF ELSE’ is closed to new replies.