I sounds as though you are trying to use Nelson rules - Wikipedia number 3.
Paste this script into Script Console and play around with it. It looks like you could do the job in two lines.
arr1 = [1, 2, 3, 4, 5, 6]
arr2 = [1, 2, 4, 3, 5, 6]
arr3 = [1, 2, 3, 3, 5, 6]
print "Is the series strictly increasing?"
print all(x < y for x, y in zip(arr1, arr1[1:]))
print all(x < y for x, y in zip(arr2, arr2[1:]))
print all(x < y for x, y in zip(arr3, arr3[1:]))
print "Is the series strictly decreasing?"
print all(x > y for x, y in zip(arr1, arr1[1:]))
print all(x > y for x, y in zip(arr2, arr2[1:]))
print all(x > y for x, y in zip(arr3, arr3[1:]))
print "Is the series strictly non-increasing?"
print all(x >= y for x, y in zip(arr1, arr1[1:]))
print all(x >= y for x, y in zip(arr2, arr2[1:]))
print all(x >= y for x, y in zip(arr3, arr3[1:]))
print "Is the series strictly non-decreasing?"
print all(x <= y for x, y in zip(arr1, arr1[1:]))
print all(x <= y for x, y in zip(arr2, arr2[1:]))
print all(x <= y for x, y in zip(arr3, arr3[1:]))
For more on this see Python - How to check list monotonicity - Stack Overflow.
Note that you should paste code and not pictures of code in your question. Use the </>
button to format it as code.