Code is causing unity to crash (JS)

Hi, you’ll see, i wrote this code into my script & every time the scene with this code runs, it crashes. Whenever i erase this part, it works again, any suggestion or idea of what i’m doing wrong? :I

for(var fooObj : GameObject in GameObject.FindGameObjectsWithTag("Cubes"))
	{
		for (var b=0; b<fooObj.GetComponent(CubeScript).lineasContiguasActivas.length; b=b++)
		{
			if(fooObj.GetComponent(CubeScript).lineasContiguasActivas**==true)**

** {**
** contadorDeLineas = contadorDeLineas++;**
** }**
** }**
** if (contadorDeLineas==3)**
** {**
** Debug.Log(“hay un posible cuadro #YOLO dale”);**
** }**

** }**

any error reports? did you check the log files?
What I do see is your

b = b++

Remember that whenever you have ++ or – BEHIND a variable this is done AFTER anything else.
So you first assign b (old) to b (new) and THEN count b (old) on up which has no effect. This is the way “=” works in programming. And as ++ already ups the var, you don’t need the assignment anyway. Like so:

for (var b=0; b<fooObj.GetComponent(CubeScript).lineasContiguasActivas.length; b++)

Next, I can’t see if your CubeScript is existent. Some more info would be nice.