John, before i would start on learning something new, i decided to go back on every thing i'v previously learnt with you, Emera, Callimuc and PerfecDark. As you know I'm highly energetic :D! So, what do you think i should earn next?
Printable View
John, before i would start on learning something new, i decided to go back on every thing i'v previously learnt with you, Emera, Callimuc and PerfecDark. As you know I'm highly energetic :D! So, what do you think i should earn next?
lol, im trying to learn haha
Yea:D, Imainly wanna gfx or LAT, but I can also gani.So if I learn to script, I could maybe be a developer! :D
Where did you stop at?
well, i forgot my password on graalians today, but at least i previously i went through the scripts again and i found out what you guys meant by styling the script.
i last stopped at triggering something to a ever side or a Client side, i still need to go through loops but if I'm currently not ready i can learn something else you would like me to learn in order for me to be good coder like you, John, Emera and PerfectDark.
So what would you like as to start now?
Loops are easy, useful and efficient tools in java, and I'm fairly sure they're just as useful in gs2
A for loop is simple:
The x=1 defines a variableHTML Code:for (x=1;x<=5;x++)
{
System.out.println("hello!"); //I believe echo is used in gs2
}
x<=5 shows how many times you want the loop to repeat
x++ will make the x value move up
As long as it is less than or equal to five in this case, the loop will repeat.
The output of the following is:
HTML Code:hello!
hello!
hello!
hello!
hello!
Lol, I don't even know what loops are xD
They make life easy by repeating a set of code a set amount of time.
With a loop, you can use the two easy lines of code instead of doing something like:
Loops are much more efficient when you need to repeat something a lot of times, like instead if typing that line 100 times, just change the 5 in the loop to a 100 for the same outputHTML Code:System.out.println("hello!");
System.out.println("hello!");
System.out.println("hello!");
System.out.println("hello!");
System.out.println("hello!");