This command will return zero if the ftp connection has failed.

Syntax: 
Return Integer=GET FTP STATUS()