New code produces this result

ERROR : Error in expression.!
Script: C:\SCRIPTS\4.x\AD\fncWatchForNewFiles2.kix
Line : 14

Line 14 is:
sleep 1
Line 13 is:
endif