Does this provide the functionality you want?
Code:
IF LC < 5000 THEN
  PAUSE (5000 - LC)
ENDIF