Why are you multiplying the values? You need to subtract the discount from the sub-total, like this:
event.value = this.getField("Subtotal").value - this.getField("Discount").value;
There are many fields, Gilad, and yes this particular one needs to be the way I have it formulated in my initial question. This value is then used in another field called "DIscount Total" which is the subtraction formula you so kindly pointed out above.
At this point I just need my original question answered in regards to if that value is zero.
What do you want to happen in that case, then?
Have you checked the field calculation order?
I need to multiple the Subtotal field and the discount field they will then equal the total discount field. If the discount field is 0%, then I need the total discount field to equal the subtotal field.
Ah, so it's a percentage field, not a dollar amount (as your original question suggested). In that case, you can use something like this:
if (this.getField("Discount").value==0) event.value = this.getField("Subtotal").value;
else event.value = this.getField("Subtotal").value * this.getField("Discount").value;
Worked like a champ! Thank you for your help!