Can someone tell me why my loop is not working ? Or if I need to make a change - I can get the result when the files are already past the 10 mark but if they are less and then they pass the 10 mark the message box fails to pop up.....
#include <File.au3>
#include <Array.au3>
$filefolder = 'D:\Inputp'
$fileextension = '*.eml'
$FileList = _FileListToArray($filefolder, $fileextension);only list files with given extension
While 1
If $FileList[0] > 10 Then
MsgBox(0, "number of file is:", $FileList[0])
Else
EndIf
WEnd