I'm trying to write a simple procedure which will assign a letter grade to a string variable based on a grade entered by the user which I've stored in a variable named "AGrade". I have written the statements like this:
LGrade proc AGrade;dword ; 1 Parameter
.if (AGrade > -1) && (AGrade<60)
mov letter, "F"
.EndIf
.if (AGrade > 66) && (AGrade<70)
mov letter, "D+" ;ERROR SHOWS HERE
.Endif
letter
is declared as letter byte " ", NULL
I get the error:
error A2070: invalid instruction operands
I noticed that when i remove the second if statement entirely, I can build without a problem. So my guess is that I am nesting incorrectly. Is "else" required instead? If possible, can someone show me the correct way I'd nest these two statements? Thanks a lot!