Given the following script
I know that including a leading "|" will do the job ($mylist = "|1|2|3"),
but this is not mentioned in the scripting guide (GETLIST; section "Remarks")
Is this a bug or a feature, means you have to change it in scriptftp or in the documentation?
Code: Select all
following output is generated:#test.ftp
$mylist = "1|2|3"
FOREACH $item in $mylist
PRINT $item
END FOREACH
Code: Select all
The first item is skipped!Running C:\test.ftp
2
3
I know that including a leading "|" will do the job ($mylist = "|1|2|3"),
but this is not mentioned in the scripting guide (GETLIST; section "Remarks")
Is this a bug or a feature, means you have to change it in scriptftp or in the documentation?
Hello terrabio,
Well, it's a bug. I have realized that the separator character "|" must be put before every item. For example:
Thanks for reporting this. It will be fixed in the next release (3.4)
Well, it's a bug. I have realized that the separator character "|" must be put before every item. For example:
Code: Select all
This will work but according to the documentation (and the common sense) your script should also work.$mylist = "|1|2|3"
Thanks for reporting this. It will be fixed in the next release (3.4)
liked Script FTP? Try our other product Email Parser