Skip to content

IDL Problem Code 67 with alias bad-break

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 break statements that are not within loops or switch statements.

idl
pro myAwesomePro
  compile_opt idl2

  break
  ; ^^^ bad break statement
end

The break statement should be used like this:

idl
pro myAwesomePro
  compile_opt idl2

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

Licensed under MIT.