Script Question for CL: If statement, where to put EndIf?

"ppromax-/[email protected] [power-pro]" <[email protected]>
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
Greetings Gurus, I'm using the *script function in a CL to execute the line below. This is an IF statement
 (win.visible("c=TFullScreenWindow")) do win.show("c=TFullScreenWindow") endif
 
 

 
 

 If I exclude the endif powerpro crashes my computer.
 If I include the endif the script works but i get the error below.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.