Author Topic: Repeating Actions  (Read 444 times)

Let's say I wanted to do something once, then do something else, then did what I did before.

Instead of coding it twice or more, can I create a function and just call it everytime I wanted to preform that specific action?

Its not that easy...

function docrap()
{
    codetodo;
}

Do the crap that you want to do by: docrap();

Its not that easy...
Yus it is.
That's why they invented "For... loops", functions, and sub-routines.

function docrap()
{
    codetodo;
}

Do the crap that you want to do by: docrap();

That's what I want. :D

Thanks. :)

Yus it is.
That's why they invented "For... loops", functions, and sub-routines.
I thought he ment like a record what you do script then play it