I have a problem, whereby a directory is being listed through and a comparison is being performed between each filename (name) and a wildcard search string '*CHK*.afx'. Any filenames which should be picked out by the wildcard comparison aren't, and as a result, the code keeps jumping to the <cfelse> statement (2)
<cfloop query="FTP_Dirlist">
<cfif name eq '*CHK*.txt'>
.....do something (1)
<cfelse>
.....do something else (2)
</cfif>
</cfloop>
If anyone could help would be v.much appreciated! [sig][/sig]
<cfloop query="FTP_Dirlist">
<cfif name eq '*CHK*.txt'>
.....do something (1)
<cfelse>
.....do something else (2)
</cfif>
</cfloop>
If anyone could help would be v.much appreciated! [sig][/sig]