diff --git a/sanityCheck b/sanityCheck
index ce5c3898bd23d3e434c54928f24c9571cf4b0c9e..f1b9e1a747632e79619c7d4478765d338b95c7e5 100755
--- a/sanityCheck
+++ b/sanityCheck
@@ -24,9 +24,11 @@ $GREP "<<[^>()]*>[^()<>"$'\r]*\r'"\?$" -- 'src/*' | myprint "MissingClosingAngle
 $GREP "\([^<]\|^\)</\?\(if\|else\|case\)" -- 'src/*' | myprint "MissingOpeningAngleBracket2"
 # Check for accidental assignment.  e.g.:   <<if $foo = "hello">>
 $GREP "<<[ ]*if[^>=]*[^><\!=]=[^=][^>]*>>" -- 'src/*' | myprint "AccidentalAssignmentInIf"
-# Check for missing ".  e.g.:   <<if $foo = "hello>>
+# Check for accidental assignment.  e.g.:   <<elseif $foo = "hello">>
+$GREP "<<[ ]*elseif[^>=]*[^><\!=]=[^=][^>]*>>" -- 'src/*' | myprint "AccidentalAssignmentInElseIf"
+# Check for missing ".  e.g.:   <<if $foo == "hello>>
 $GREP "<<[^\"<>]*\"[^\"<>]*>>" -- 'src/*' | myprint "MissingSpeachMark"
-# Check for missing ".  e.g.:   <<if $foo = "hello)
+# Check for missing ".  e.g.:   <<if $foo == "hello)
 $GREP "<<[^\"<>]*\([^\"<>]*\"[^><\"]*\"\| [<>] \)*\"\([^\"<>]*\"[^><\"]*\"\| [<>] \)*\([^\"<>]\| [<>] \)*>>" -- 'src/*' | myprint "MissingSpeachMark2"
 # Check for colors like: @@color:red   - should be @@.red
 $GREP -e "@@color:" --and --not -e  "@@color:rgb([0-9 ]\+,[0-9 ]\+,[0-9 ]\+)" -- "src/*" | myprint "UseCssColors"