Bug on foreach with empty list & MsgOnEmpty
Posted: 29 Mar 2023 14:45
If foreach has an empty list, and MsgOnEmpty is specified, XY says that 1st parm is invalid. This is definitely wrong.
Example script: 2 foreach run OK, 3rd & 4th show error. (Click Continue!)
(In real situation the list is a list of files, that can be empty.)
And maybe: a misunderstanding. What *should* MsgOnEmpty really do? And what should happen to the 'returned' var ($v) in this case?
(My expectations seem to be wrong...
)
Example script: 2 foreach run OK, 3rd & 4th show error. (Click Continue!)
(In real situation the list is a list of files, that can be empty.)
And maybe: a misunderstanding. What *should* MsgOnEmpty really do? And what should happen to the 'returned' var ($v) in this case?
(My expectations seem to be wrong...