Variable undefined
Good morning I have a situation wherein during an insert into my database, the variable that I created from an cfif/cfset throws an error. Am I missing something? My code is below...
<cfset gradepoint =VAL('#fcnpoint#') + VAL('#attitudepoint#') +
VAL('#guestpoint#') + VAL('#contactpoint#') + VAL('#attendancepoint#')
+ VAL('#nspoint#') + VAL('#foidpoint#') + VAL('#otherpoint#')>
<cfif "#gradepoint#" GTE "-20.45" AND "#gradepoint#" LTE "11.1"><cfset
maingrade= 'F'></cfif>
INSERT INTO squadreport (squid, squgrade)
VALUES ('00', '#maingrade#')
</cfquery>
