I am new to using Kofax Power Editor, which uses Javascript, and I am trying to create an if else statement that involves simple calculations. It depends on what the user enters into a textfield box, and then displays it in a separate text field box. Here is the line I wrote:
if (Textfield1 <= 15,000) { Textfield3 = (Textfield1*.05)/12; }
Although, nothing is showing up in Textfield3. I have no clue why.
If anyone would like to help, I am available via phone as well. Or facetime.... because this not making any sense to me.
You have a comma
,
which is interpreted as comma operator and all checks yieldsfalse
, because of zero value.To overcome this, remove the comma.