Velocity Script Error - 5000 lexical error
Howdy and Halp!
I'm hoping to find some help with a velocity script I am editing. I am just trying to hobble this together to meet a deadline. I am not a coder and just barely understand all that is happening in this script...just well enough to get into trouble. See below. 🙂
I have added a number of references to the field 'appointmentType'. The script is now producing an error:

This is the script I have in place:
#foreach ($appointmentItem in $appointment_cList) set( $todayCalObj =
#$date.toCalendar($date.toDate("yyyy-MM-dd HH:mm",$date.get('yyyy-MM-dd
#HH:mm'))) ) set( $nextAppt = $date.toCalendar($date.toDate("yyyy-MM-dd
#HH:mm",${appointmentItem.appointmentDateTime})) ) set( $inFuture = (
#$nextAppt.getTimeInMillis() - $todayCalObj.getTimeInMillis() ) /
#86400000 ) if ( $inFuture > 1 && $inFuture < 2 &&
#($appointmentItem.appointmentStatus != "Reschedule" ||
#$appointmentItem.appointmentStatus != "Cancelled" ||
#$appointmentItem.appointmentType != "Benefit Renewal" ||
#$appointmentItem.appointmentType != "Clean and Check" ||
#$appointmentItem.appointmentType != "Change of Insurance Consult" ||
#$appointmentItem.appointmentType != "Complimentary Screening" ||
#$appointmentItem.appointmentType != "Complimentary Screening/Demo" ||
#$appointmentItem.appointmentType != "Demo Follow Up" ||
#$appointmentItem.appointmentType != "Diagnostic and Warranty" ||
#$appointmentItem.appointmentType != "Diagnostic Eval and Demo 3yrs +" ||
#$appointmentItem.appointmentType != "Diagnostic Eval/HAC(Hearing Test)& Hearing Aid Che" ||
#$appointmentItem.appointmentType != "Diagnostic Evaluation and Hearing Aid Evaluation" ||
#$appointmentItem.appointmentType != "Diagnostic Evaluation(Hearing Test)" ||
#$appointmentItem.appointmentType != "Earmold Fitting" ||
#$appointmentItem.appointmentType != "Earmold Impression" ||
#$appointmentItem.appointmentType != "Empire Plan Follow up" ||
#$appointmentItem.appointmentType != "Final Denial Consult" ||
#$appointmentItem.appointmentType != "Functional Gain Testing" ||
#$appointmentItem.appointmentType != "HA Exchange" ||
#$appointmentItem.appointmentType != "HAC 45 day trial" ||
#$appointmentItem.appointmentType != "HAC+D-Hearing Aid Check & Demo 3 yrs +" ||
#$appointmentItem.appointmentType != "HAC-Hearing Aid Check less than 3 yrs." ||
#$appointmentItem.appointmentType != "HAE-Hearing Aid Evaluation" ||
#$appointmentItem.appointmentType != "HAE/HAF -Hearing Aid Evaluation & Fitting" ||
#$appointmentItem.appointmentType != "HAF--Hearing Aid Fitting" ||
#$appointmentItem.appointmentType != "Hearing Aid Adoption" ||
#$appointmentItem.appointmentType != "Hearing Aid Consult Follow-Up" ||
#$appointmentItem.appointmentType != "Hearing Aid Evaluation" ||
#$appointmentItem.appointmentType != "Home Delivery/Dispense" ||
#$appointmentItem.appointmentType != "Home Visit" ||
#$appointmentItem.appointmentType != "Insurance Benefit Renewal Follow Up." ||
#$appointmentItem.appointmentType != "Insurance consult f/u needs Demo" ||
#$appointmentItem.appointmentType != "Insurance Consult Follow Up/Fitting Upon Authoriza" ||
#$appointmentItem.appointmentType != "Insurance Consult Initial W/WO Diagnostics" ||
#$appointmentItem.appointmentType != "Insurance Final Denial Follow-Up" ||
#$appointmentItem.appointmentType != "Insurance follow up after Dispense" ||
#$appointmentItem.appointmentType != "Insurance Resubmit" ||
#$appointmentItem.appointmentType != "Lost Device" ||
#$appointmentItem.appointmentType != "New Patient Adult CAE" ||
#$appointmentItem.appointmentType != "New Patient Pediatric CAE" ||
#$appointmentItem.appointmentType != "Office Visit/Referral Consult" ||
#$appointmentItem.appointmentType != "Payment" ||
#$appointmentItem.appointmentType != "Replacement Pick up" ||
#$appointmentItem.appointmentType != "Service/Repair" ||
#$appointmentItem.appointmentType != "Tinnitus Evaluation" ||
#$appointmentItem.appointmentType != "Warranty" ||
#$appointmentItem.appointmentType != "Warranty and Demo over 3 years" ||
#$appointmentItem.appointmentType != "Cancelled" ||
#$appointmentItem.appointmentStatus != "Warranty and HAC less than 3 years" ) )
#set( $nextAppointment =
#$convert.parseDate(${appointmentItem.appointmentDateTime},
#'yyyy-MM-dd HH:mm') )
<p>$date.format('MM/dd/yyyy',$nextAppointment) at $date.format('hh:mm
a',$nextAppointment)<br /> <br>
#break else end
#end
The objective is to exclude the above appointment types and statuses from the email send. I am hoping this just a simple syntax error. Thanks to anyone that is able to have a gander.