如何在不解决每个事件的情况下解决一系列连续的事件发生? V5

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

解决方法的示例代码:

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

不知何故……?例如:

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

听起来像这样可以用 for 循环来解决:

var BooleanThingy = true

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