Here is a couple threads from the Ecco_Pro Forum,
on getting started with LUA rules.
Text was
clipped from the Ecco_Pro .eco file in that forum,
(using View > Notepads > Copy Notepad without items,
and then using the EccoMagic (Classic) tool to copy
with formatting & folder values to the new .eco )
see also
here for simplified forumized version of same info.