define(["require","exports","../../Validation"],function(o,i,u){"use strict";function c(){return{looping:!1}}function a(o,i){return o.call("loop"),{looping:!0,pass:o.passes,item:i}}Object.defineProperty(i,"__esModule",{value:!0});var e=(t.prototype.execute=function(o,i){var e=u.validation.number("count",o.count,0),t=u.validation.number("limit",o.limit,1e3),n=u.validation.array("collections",o.collection,void 0),r=i.passes,l=o.exit;if(void 0!==l&&l)return c();o=o.loop;return void 0!==o&&!o||t<=r?c():void 0!==n?r>=n.length?c():a(i,n[r]):r<e||void 0!==l&&!l||void 0!==o&&o?a(i):c()},t.action="gcx:wf:core:loop:Loop",t.suite="gcx:wf:builtin",t);function t(){}i.Loop=e});