"If" forumla help please!


i trying create conditional or "if" formula in acrobat.  have done same thing in word, same formula not work in “simplified field notation” , not familiar javascript.

 

my fields "install", "monthly", "day", "dayrate" , "prorate".  ("monthly" , "install" fields require input user.

 

dayrate = monthly / 30    day = 31 - install

 

i trying determine "prorate" based on input in "monthly" , "install."  formula used in word calculate value field “prorate” “if(day=30, monthly, day*dayrate).

 

is there way in acrobat? have tried mimicking several other “if” scripts without success , i’m in time crunch.  thank much!

the simplified field notation not javascript uses javascript behind scenes take field names , constant numeric values perform 4 basic calculation methods of addition, subtraction, multiplication , divsion. no conditional controls statements, field properties, field methods, or functions allowed. field names must start alphabetic character , should not include white space. white spaces used determine break of field name, operations, , constants.  string operations not permitted.

 

you not specify target of calculation, assumed target result of calculation field calculation being written.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support