IF this OR that then this

New Here ,
Aug 22, 2017

Copy link to clipboard

Copied

I created an if statement with OR but it doesn't seem to be working. Here is my javascript

if ((oa4.value > 0) || (oa3.value > 0 && hr.value > 0))

{

then do what's next...

I have order amount lines and lines 1-4 are filled in then other things can happen. Also if line 1-3 are filled in with values and another total value is not null then that counts too.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

46

Likes

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

IF this OR that then this

New Here ,
Aug 22, 2017

Copy link to clipboard

Copied

I created an if statement with OR but it doesn't seem to be working. Here is my javascript

if ((oa4.value > 0) || (oa3.value > 0 && hr.value > 0))

{

then do what's next...

I have order amount lines and lines 1-4 are filled in then other things can happen. Also if line 1-3 are filled in with values and another total value is not null then that counts too.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

47

Likes

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
Aug 22, 2017 0

Have something to add?

Join the conversation