Repeat Until () or ()?

So I was wondering about something with repeat loops. Right now they work like this

repeat
this
until that

but, what if you do this?

repeat
this
until that or this

can you add that or statement, or does that not work?

Yea you can have an or statement if you want it to stop repeating until one of the conditions are true

2 Likes

you most certainly can use β€œor” statements in repeat until functions
example below

local parameter1 = 0
local parameter2 = false

repeat
parameter1 += 1 
until parameter1 == 15 or parameter2 == true
1 Like

Ok thank you! I was wondering if it worked that way.

1 Like