How to say, elements 0 through 5, in unityscript?

Only thing I can think of is elementVar[0&&1&&2&&3&&4&&5], but I don’t know if even that would work. I would think there would be a way to say 0through5? Maybe elementVar[<6]?

for(int i = 0; i<6; ++i)
{
elementVar
// more stuff
}

yes, I figured it out thank you. For more detail for others that find this:

assign-

var i : int;

then do this-

else{
    for(i=0;i<6;i++){
    elementVar*//n some other crap;*

}
}