Could someone tell why I am getting errors on the following code:
If(vAvg > 1) {
vReturnVal = 1;
} else {
vReturnVal = 0;
}
the reported error is: "missing ; before { on line 1"
If I put a ; there it changes to a syntax error on the "else" line
If(vAvg > 1) {
vReturnVal = 1;
} else {
vReturnVal = 0;
}
the reported error is: "missing ; before { on line 1"
If I put a ; there it changes to a syntax error on the "else" line
Comment