Please help: How can I refer to past conditions NOT by period

Forums ProRealTime English forum ProBuilder support Please help: How can I refer to past conditions NOT by period

Viewing 5 posts - 1 through 5 (of 5 total)
  • #170312

    Hello,

    how can I refer to a past condition NOT by period with square brackets […] BUT by last time, 2nd last, 3rd last time and so on?

    Meaning and I dont care when exactly the condition was true, I just want to get values from it.

    Please help forum brains

    Thx & cheers

    #170323

    You need to use a FOR…NEXT iteration.

    You simply set the number of the occurrence you want to retrieve and it will be returned in variable EventBar (0=no occurrences):

    #170383

    Alternatively use an array to store the value and increase the array location by +1 each time you store a value.

    Not tested.

     

    1 user thanked author for this post.
    #170387

    Vonasi‘s solution is much better because you don’t waste time to scan bars backwards, which can be very time consuming if you want retrieve, say, the 100th event!

     

    1 user thanked author for this post.
    #170442

    Thanks a lot guys!:) much appreciated…

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login