Skip to content

IDL Problem Code 66 with alias bad-continue

Want to disable me? Check out the configuration guide to learn more.

Execution Error

This is a fatal error that prevents IDL from compiling or running code

This identifies continue statements that are not within for, foreach, while, or repeat loops.

Here's an example of the error:

idl
pro myAwesomePro
  compile_opt idl2

  continue
  ; ^^^^^^ bad continue statement
end

To fix the problem remove the continue statement or make sure it is used within a loop like so:

idl
pro myAwesomePro
  compile_opt idl2

  for i=0,99 do begin
    if i lt 50 then continue
    ;               ^^^^^^^^ OK!
  endfor
end

Licensed under MIT.