[ascoders] Re: AW: Re: schreibweise in einer if Abfrage?

  • From: 1stPIXEL <1stpixel@xxxxxxxxxxxxxxx>
  • To: ascoders@xxxxxxxxxxxxx
  • Date: Wed, 26 Nov 2003 14:40:04 +0100

oberargh !!!!!!!!!!!!!!!

checkIf = function (scope, bool, args) {
        var l = args.length, i = 0;
        while (i < l) {
                if (scope[args[i]] != bool) return false;
                i++;
        };
        return true;
};
foo = true;
bar = true;
test = true
trace (checkIf (this, true, ["foo", "bar", "test"]))


;-)


Strg+Enter = tooFast;

1stPIXEL


------------------------------------------------------ Archiv : //www.freelists.org/archives/ascoders/ Optionen : //www.freelists.org/list/ascoders ------------------------------------------------------

Other related posts: