Your code looks rather complicated but it is difficult to guess what you want to achieve without knowing more about the underlying problem you want to solve. For example, I find the line
if ( ($ta-$a) < $threshold && ($tc-$c) < $threshold)
strange as I would expect some kind of abs($ta-$a) < $threshold instead. But without knowing more detail it is difficult to comment more specifically.
In reply to Re: problem in for loop
by hdb
in thread problem in for loop
by MVRS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |