If then else if not working
-
I am trying to get this function to work. It is returning nothing. Please help.
(function(){
if( fieldname7==0 )
{
return PREC(fieldname8*1.05), 0);
}
if( fieldname7==1)
return PREC(fieldname8*1.1), 0);
if( fieldname7==2)
{
return PREC(fieldname8*1.23), 0);
}
if( fieldname7==3)
{
return PREC(fieldname8*1.39), 0);
}
if( fieldname7==4)
{
return PREC(fieldname8*1.62), 0);
}
})();
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘If then else if not working’ is closed to new replies.