Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to break a For loop using If statement?

Asked by 5 years ago
Edited 4 years ago

SOLVED

0
You need double equals (==) when comparing values mattscy 3725 — 5y
0
It still didn't work. DERP9487 41 — 5y
0
There's no way to tell if that loop works since it doesn't output anything mattscy 3725 — 5y
0
ok DERP9487 41 — 5y
View all comments (3 more)
0
you need to print(i) before break in order to test if it works TomAndelson 258 — 5y
0
Ok DERP9487 41 — 5y
0
Don't replace your question with "Solved" as other players might be able to use your question to help them. Tweakified 117 — 5y

1 answer

Log in to vote
0
Answered by 4 years ago

Solved

Ad

Answer this question