01-08-2014 08:31 AM
sonnyanderson wrote:
forgiveness is that you can explain to me how you doing? that is what you used? and why ? please
max(x,y) returns the maximum value in the list. Since ButtonHit is default to 0 before actually running, you have an index of 0-1 = -1. This is an invalid index for the array we made. So by using the max() function, I insured that the minmum value that can used to index our array is 0.
So let's step through the evaluation. Before running, ButtonHit = 0. max(ButtonHit-1,0) = max(0-1,0) = max(-1,0) = 0. Hey, 0 is a valid index. Therefore the analyzer doesn't yell at you.
01-08-2014 08:47 AM
The other possible way to circumvent the warning popup is to disable the sequence analyzer before execution of the sequence.
You can do this by clicking on the marked symbol in the icon bar that it also displayes the red "x" top right as seen here:
Norbert