comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » endi and endif
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
endi and endif [message #84864] Fri, 14 June 2013 13:00 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
OK I'm sure I am missing something obvious here

When I am typing into the workbench editor, and enter an "if" clause

"if a eq 3 then begin "

the editor automatically adds a subsequent "endi". This is fine but I don't know any IDL words spelled "endi" so I manually add the missing "f" at the end to make an "endif". But now the program no longer compiles.

To add to the confusion, if I am working from the command line and a stand-alone editor, the program will compile with "endif" but not with "endi"!! The following program will not compile.

pro test
if !Const.pi lt 3 then begin
print,'All is well'
endi
return
end

My only guess at this point is that in the workbench "endi" has a special meaning.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: k-d tree IDL implementation
Next Topic: pass parameters to a function when calling BROYDEN or NEWTON routines

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:37:50 PDT 2025

Total time taken to generate the page: 0.00406 seconds