This is the large way, It is works ok, but isn't ideal code...almost the same 80 times!!!
if(videotime GE (tiempos[ruta1].t0)
AND videotime LE (tiempos[ruta1].t1),
aproxima(videotime,tiempos[ruta1].t0,tiempos[ruta1].t1,0,1);
);
if(videotime GE (tiempos[ruta1].t1)
AND videotime LE (tiempos[ruta1].t2),
aproxima(videotime,tiempos[ruta1].t1,tiempos[ruta1].t2,1,2);
);
if(videotime GE (tiempos[ruta1].t2)
AND videotime LE (tiempos[ruta1].t3),
aproxima(videotime,tiempos[ruta1].t2,tiempos[ruta1].t3,2,3);
);
--------
I want anything as:
for (set i,0), i LT 84, inc(i)
if(videotime GE (tiempos[ruta1].t(i) )... etc
---------
Note:
My original array is:
<tiempos name="ruta1"
t0="0" t1="10" t2="18" t3="26" t4="35" t5="44" t6="53" t7="63"...t84="793"
/>
--------
Any idea, thanks!!