Author Topic: How would you delay something in a script  (Read 2295 times)

Not without some sort of a goto, no.
example?
Code: [Select]
while(true)
{
    duck();
    if($duck)
        continue;
    quack();
}
could just be
Code: [Select]
while(true)
{
    duck();
    if(!$duck)
        quack();
}

where else would you use it?

example?
Code: [Select]
while(true)
{
    duck();
    if($duck)
        continue;
    quack();
}
could just be
Code: [Select]
while(true)
{
    duck();
    if(!$duck)
        quack();
}

where else would you use it?
That's pretty much it. It saves you two lines if your if statement is longer than a single line.
break; and return; are much more useful than continue;

yeah, i use those a lot, just never continue

Knows all about the main thread...

someone's alt?
Yes, because it takes a computer scientist to realise that a program has a main thread...

Yes, because it takes a computer scientist to realise that a program has a main thread...
Well, I'm sure most people don't have a clue what it is

Yes, because it takes a computer scientist to realise that a program has a main thread...
One does not simply have knowledge yet have a lowercase name.

One does not simply have knowledge yet have a lowercase name.
You're so handicapped. Knowing that a loop like that would block the thread doesn't mean he's an alt lmao!

we already know he's an alt

Like lug said, we've known he's been an alt for a while
Just never who

Like lug said, we've known he's been an alt for a while
Just never who
he's the guy who made one of the first cityrpgs with iban but then bbian and him broke up

he's the guy who made one of the first cityrpgs with iban but then bbian and him broke up
Really? What was his original name

Really? What was his original name
i can't remember :( i'm going back through coding help to find his topic about script resources..

i can't remember :( i'm going back through coding help to find his topic about script resources..
Jookia did that, but he was Biebsfan

Jookia did that, but he was Biebsfan
oh duh. that's who i was thinking of.. nvm me

You're so handicapped. Knowing that a loop like that would block the thread doesn't mean he's an alt lmao!

I know a loop like that would block the thread and I'm an alt ... kinda makes sense.