nested if statement
Is there a way to write a custom calculation script to create a nested if statement? I have been asked to convert an Excel file into a PDF fillable form.
I tried to break it down the best I could. Please don't laugh at my efforts, I really am a newbie and hope to learn more as I work with these files.
The error I get is SyntaxError: missing ) after condition 3: at line 4.
var v1 = getField("OverdepthRow1").value;
if (v1 !>= 1.3){
var result = v1*1.2;
event.value = result;
if (v1 !>= 1.2){
var result = v1*1.15;
event.value = result;
if (v1 !>= 1.1){
var result = v1*1.1;
event.value = result;
}else(event.value = v1;)
I appreciate any help and advise you can offer.
Thanks!
