ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
I am working with the trail version and I need the ability to tell if a parameter is included or not and if that value is a numeric value. Can you help me?
Hello,

To check if a parameter is used you can do the following:
FTP Script
  1. IF(GETPARAM(2)=="")
  2.     PRINT("Parameter not included")
  3.     PRINT("Parameter included")
The other check is not easy, there is no ScriptFTP command to check if a given text string is numeric or not. You would need to create an external program to do so. Something like:
FTP Script
  1. IF(EXEC("isnumeric.exe ".GETPARAM(2)==1))
  2.     PRINT("is numeric")
  3.     PRINT("is not numeric")