I am trying to find the beginning of a recession in this list, this recession occurs when two consecutive quartiles are descending (-1). How can I buy this? I'm trying to do a double if to check the row 'row' and the next row, 'row' +1, but I can't find the key. Furthermore, this quartile is always the first one in the recession group.
Quarterly GDP change
2007q4 1.0
2008q1 -1.0
2008q2 1.0
2008q3 -1.0 <---This value is the recession start
2008q4 -1.0
2009q1 -1.0
2009q2 -1.0