Answered
I am trying to have a decimal field called Management that can make the following calculations with two fields ManagerScore and EmployeeScore.
if ManagerScore = 0 then EmployeeScore *.40
else
(ManagerScore + EmployeeScore) *.40/2
I have tried every possible combination that I can think of in the calculate event using FormCalc or JavaScript and failed every single time. Please help!!!!
The syntax of the "if" statement:
if ( simple expression ) then
list of expressions
elseif ( simple expression ) then
list of expressions
else
list of expressions
endif
So you could code
if (ManagerScore == 0) then
EmployeeScore *.40
else
(ManagerScore + EmployeeScore) *.40 / 2
endif
There is more information about FormCalc and JavaScript in the 'Scripting Reference" under LiveCycle Designer's menu "Help" option. Make sure all your variable names are spelled and capitalized correctly,
George Kaiser