It would help if I saw your function but ill give it a go:



for(i=0;i<array.length;i++)
{
if(array[i]-1.50< 1)
{
break;
}