Hi,
I have the following FormCalc script as a Calculate event. Can anyone please tell me what's wrong with it. I need to avoid a divide by zero error if someone enters 0 in either of the two referenced fields.
if (HasValue(EstimatedTotalEligibleCosts <= 0) or (EstimatedGMFGrant <= 0))
then this.rawValue =""
else EstimatedGMFGrant / EstimatedTotalEligibleCosts * 100
endif
Thank you.