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

Else IF

New Here ,
Feb 07, 2023 Feb 07, 2023

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
1.1K
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Feb 15, 2023 Feb 15, 2023
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";

 

View solution in original post

Translate
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
Adobe Employee ,
Feb 13, 2023 Feb 13, 2023

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

Translate
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

Try the forum for Adobe Acrobat.

Translate
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
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";

 

Translate
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