ID:149951
 
in visual basic its possible to make a loop that goes

if (A = B)
loop end
else continue loop

ive read a ton of stuff and it has yet to answer the question, so does that mean its not possible? (without some long page of coding)
mob/proc/testloop()
var/A = 1
var/B = 20
if(A == B)
src<<"Loop ended!"
else
A+=1
src<<"Starting loop again..."
testloop()


Is that what you were asking?
In response to Nadrew
Nadrew wrote:
Is that what you were asking?

Alternatively, with a while() loop! :)
mob/verb/testloop()
var/A = 1
var/B = 10
while (A != B)
usr << "A ([A]) is not B ([B])"
A++ //add to A
world << "A now equals B"
world << "ENDLOOP"