0
$\begingroup$

Say I have a timeseriesforecast on a series of data, result in

$10, 30, 50, 100, 400, 700, \ldots$

I want the programme to output the serial number (position in the forecast-series) of the first element larger than 500.

(in the above case, the answer should be 6)

How can I do it?

$\endgroup$
  • 4
    $\begingroup$ FirstPosition[yourlist, _?(# > 500 &)] ? $\endgroup$ – MarcoB Feb 17 '16 at 4:42
  • $\begingroup$ Position[myList, _?(# > 500 &)] // Flatten $\endgroup$ – user9660 Feb 17 '16 at 14:13