• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

Else IF

New Here ,
Feb 07, 2023 Feb 07, 2023

Copy link to clipboard

Copied

Posting terms of sales. If the field "PlatesOrdered" is 10 - 19, the field TOS = "At time of order"

If the field "PlatesOrdered" = 20 - 99, the field TOS = "Net 15"

Else the field TOS = "Net 30"

The below code only produces "Net 30"

 

var v = Number(this.getField("PlatesOrdered").valueAsString);

if(v=0)event.value = "At Time Of Order";

else if(v>0&&v<20)event.value = "At Time Of Order";

else if(v>19&&v<100)event.value = "Net 15";

else if(v=>100)event.value = "Net 30";

TOPICS
How to

Views

666

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 15, 2023 Feb 15, 2023

You're using some incorrect operators. Change the first line to:

if(v==0) event.value = "At Time Of Order";

And the last one to:

else if(v>=100) event.value = "Net 30";

 

Votes

Translate

Translate
Adobe Employee ,
Feb 13, 2023 Feb 13, 2023

Copy link to clipboard

Copied

Hi Nick0128,

 

Thank you for reaching out.

 

Would you mind confirming if you are experiencing any issues with the PDF or the string you have mentioned above?

Please let us know if you need any help with the Adobe product.

 

Thanks,

Meenakshi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2023 Feb 14, 2023

Copy link to clipboard

Copied

Try the forum for Adobe Acrobat.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2023 Feb 15, 2023

Copy link to clipboard

Copied

LATEST

You're using some incorrect operators. Change the first line to:

if(v==0) event.value = "At Time Of Order";

And the last one to:

else if(v>=100) event.value = "Net 30";

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines