0
If statement in my Simplified field notation?
New Here
,
/t5/acrobat-discussions/if-statement-in-my-simplified-field-notation/td-p/15224834
Mar 21, 2025
Mar 21, 2025
Copy link to clipboard
Copied
I finally got this to work and the result of this equation goes into a SubPayment field:
WeeklySalary-EIPayment1*WeeklySalary1
However, when there is no amount in EIPayment1 I want the result to be zero in the SubPayment field.
Is there a way to do this? I am a brand spanking new user......
TOPICS
How to
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/if-statement-in-my-simplified-field-notation/m-p/15224856#M501674
Mar 21, 2025
Mar 21, 2025
Copy link to clipboard
Copied
If statement is there not possible.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Deborah26470382gwb2
AUTHOR
New Here
,
/t5/acrobat-discussions/if-statement-in-my-simplified-field-notation/m-p/15224969#M501679
Mar 21, 2025
Mar 21, 2025
Copy link to clipboard
Copied
how can I get the SubPayment field to show a zero or blank if there is no amount in the EIPayment1 field but do the cal I mentioned if there is
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/if-statement-in-my-simplified-field-notation/m-p/15224998#M501680
Mar 21, 2025
Mar 21, 2025
Copy link to clipboard
Copied
Use this as custom calculation script of SubPayment field:
var ws = Number(this.getField("WeeklySalary").valueAsString);
var ws1 = Number(this.getField("WeeklySalary1").valueAsString);
var ep = Number(this.getField("EIPayment1").valueAsString);
if(ep == 0)
event.value = 0;
else
event.value = ws-ep*ws1;
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Deborah26470382gwb2
AUTHOR
New Here
,
LATEST
/t5/acrobat-discussions/if-statement-in-my-simplified-field-notation/m-p/15225047#M501682
Mar 21, 2025
Mar 21, 2025
Copy link to clipboard
Copied
Thank you so much!!!!!!!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

