Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm using the for each to go over folders and files in my system,
and i was trying to create a condition to skip some files so baiscally what i want to do is like this:
FOR EACH fld in DirList(vMyDir)
IF fld < vMyCondition then
NEXT fld
ELSE
/* do something */
ENDIF
NEXT fld
But i get error when it is like that,
any other ways someone know? can share?
It looks like you don't need the "next fld" inside the if statement. Try something like this:
FOR EACH fld in DirList(vMyDir)
IF fld >= vMyCondition then
/* do something */
ENDIF
NEXT fld
Thx,
so i thought about this kind of solution,
but because i'm dealing with an old code that wasn't written by me this kind of change will have more consequences,
there for i want a simple if with another NEXT,
which i'm starting to understand is not possible in Qlik