Új hozzászólás Aktív témák

  • hiperFizikus

    senior tag

    válasz sztanozs #9596 üzenetére

    Okvetlenül meg fogom nézni - most fáradt vagyok, de miatta/helyette egész éjszaka ezen libabőrözttem, a másodikom :
    :B

    Array.prototype.u = function (e1,cs){ // vigyázat, már megfordítottam hogy a (e1) is menjen : (cs,e1) -> (e1,cs)
        // csak átforgatja a listát egy logikai értékre 
    var x, xa, wBL ; xa = this ; wBL = false ; 
    //alert(cs) ;
        if (cs == "a°"){ 
            for (x=0 ; x < UBound(xa) ; x++){
                wBL = wBL || (e1 == xa[x]) ; 
            }; return [wBL] ; // kiadás
        } else if (cs == "b°"){ 
            for (x=0 ; x < UBound(xa) ; x++){
                wBL = wBL || inLeftT(e1, xa[x]) ; 
            }; return [wBL] ; // kiadás
        } else if (cs == "c°"){ 
            for (x=0 ; x < UBound(xa) ; x++){
                wBL = wBL || inRightT(e1, xa[x]) ; 
            }; return [wBL] ; // kiadás
        } else if (cs == "d°"){ 
            for (x=0 ; x < UBound(xa) ; x++){
                wBL = wBL || InStrBL(e1,xa[x]) ; 
            }; return [wBL] ; // kiadás
        } else { // ide más is lehetne 
            for (x=0 ; x < UBound(xa) ; x++){
                wBL = wBL || (e1 == xa[x]) ; 
            }; return [wBL] ; // kiadás
        }; // if_
    }; // func_
    //    << >> u : 

    function yM(zM,n,xM){
    var y, My, k ; 
        k= false ; My= xM ; 
        /// My= xM.join("@").split("@") ; // error 
        if ((n != "") || (n != undefined)){ 
            n = 0 ; 
        }; // if
        // if ((zM != "") || (zM != 0) || (zM != undefined)){ 
        if ( ! [ "", 0, undefined ].u(zM)[0] ){
            if (! Array.isArray(zM) ){
                zM= zM.split(",") ; 
            }; // if
            if (! Array.isArray(xM) ){
                xM= xM.split(",") ; 
            }; // if
            for (y=0 ; y < UBound(xM) ; y++){ 
                // if ((zM[y] != undefined) && (xM[y] != undefined)){ // futott
                /// if ((zM[y] == undefined) || (xM[y] == undefined)){ // nem futatandó
                if ( ! [ zM[y], xM[y] ].u( undefined )[0] ){ // új speci.
                    if (xM[y] == ""){ // csakis így megy, hogy a szú rágja meg 
                        eval(zM[y]+ ' = "" ') ; 
                    } else if (isNaN(xM[y]) ){
                        eval(zM[y]+" = '"+xM[y]+"'") ;
                    } else {    eval(zM[y]+" = "+xM[y]) ;
                    }; // if
                }; // if
            }; // for 
            if (n > 0){ 
                k= true ; 
            }; // if
        }; // if
            if ((n > 0) && k){ 
                return xM[n-1] ; 
            } else if (n == 0){
                return xM ; 
            } else {    return My ; 
            }; // if
    }; // func
    //    << >> yM : 

    Píha ...
    :O

Új hozzászólás Aktív témák

Hirdetés