operations_with_text.ftp

 

This script shows how to handle text values with ScriptFTP. You can find further info about the operations used here.

# Set some values
 
$a = "Script"
$b = "FTP"
$c = "hello"
$d = "world"
 
$error_message = "Error found"
 
# Print "ScriptFTP"
PRINT($a.$b)
 
# Print "ScriptFTP rules"
$mytempvalue=$a.$b
PRINT($mytempvalue." rules")
 
# Print "hello world"
PRINT($c." ".$d)
 
 
IF($d=="world")
 PRINT("The content of the variable $d is the word world")
ELSE
 PRINT("The content of the variable $d is not the word world")
END IF
 
 
IF($c!="hello")
 PRINT("The content of the variable $c is not the word hello")
ELSE
 PRINT("The content of the variable $c is the word hello")
END IF