My code:


Single PVal, TotPmts, Payment, Fmt, APR, APR2, PayType, FVal;
const int ENDPERIOD = 0;
const int BEGINPERIOD = 0;

--I will add code here later to get input data

If (APR > 1) then APR2 = APR / 100;
APR2 = APR2 / 12;


The "then" is underlined with the following message:

"; expected"