'How to address a continuous series of event occurrences without addressing each of them? V5

Example code to workaround:

BooleanThingy = TheEvent[n] or/and TheEvent[n+1] or/and . . . TheEvent[n+k]

Somehow…? E.g.:

BooleanThingy = that.function(TheEvent[n], k, or/and)


Solution 1:[1]

Sounds like this could be solved with a for-loop:

var BooleanThingy = true

for i = 0 to k
    BooleanThingy := BooleanThingy and TheEvent[n+i]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 beeholder