My condition not work

Hi guys ! ^^

I write this in my script :
Is a Window_Base.

Code:
    Window_SynthetiseElementsInfo.prototype.refresh = function() {
        this.contents.clear();
        this._tabMagicElements = [
            param_nomElem1,
            param_nomElem2,
            param_nomElem3,
            param_nomElem4,
            param_nomElem5,
            param_nomElem6
        ];
        var y = 40;
        var x = 65;
        this.drawTextEx('Éléments :', 0, 0);
        if(this._tabMagicElements){
            for(var i = 0; i < this._tabMagicElements.length; i++){
                this.drawTextEx(this._tabMagicElements[i], x, y);
            }
        }     
    };

and i have this on window :



Thanks for your help 😉
Try these:
•
this.drawTextEx(this._tabMagicElements, x, this.lineHeight() * i);
OR
this.drawTextEx(this._tabMagicElements, x, this.fittingHeight(i));
Very very thanks Gamefall ^^

this work fine 😀
You're welcome 😉

Original thread: https://forums.rpgmakerweb.com/threads/my-condition-not-work.77586/