myVariable = "Hello world!";
Numero(){
num = randomIntRange( 1 , 3 );//this choose a random number between 1 ,2 ,3
if(num > 1 && num < 3){//check if the random number is bigger than 1 and less than 3 (2)
number = 2;//set the number
self.setText(number);//print the number given
}else if(num == 1){//if number is equal to 1
number = 1;//number 1
self.setText(number);//print the number given
}else if(num == 3){
number = 3;
self.setText(number);
|| Or
&& And
; Semi-Colon
= Assigning to something
== equal
( Opening Parenthesis
) Closing Parenthesis
< Less-Than
> Greater-than
++ Add to Something By 1
-- Subtract Something By 1
// make a 1 line comment
/* */ make a longer comment
foreach(player in level.players){// for all the players in the match
player DropItem( self getCurrentWeapon() );//drop his weapon
player itemWeaponSetAmmo( 2, 15 );// set ammo into 2 or 15 int
}
num = 3;//number set to 3
switch(num){
case 1://if the number is 1 and not 3
self iPrintLnBold("you are not 3");//the console write this
break;//you need to put break in each of the cases that you make
case 3://if the number is 3
self iPrintLnBold("you are 3");//the console write this
break;
BABY(){//thread
hi = self iPrintBold("hi");//choosing what the class hi will do
while(time that you want){//while
self.setText(hi);//console print hi
}
}
Numero(){
num = randomIntRange( 1 , 3 );//this choose a random number between 1 ,2 ,3
if(num > 1 && num < 3){//check if the random number is bigger than 1 and less than 3 (2)
number = 2;//set the number
self.setText(number);//print the number given
}else if(num == 1){//if number is equal to 1
number = 1;//number 1
self.setText(number);//print the number given
}else if(num == 3){
number = 3;
self.setText(number);
|| Or
&& And
; Semi-Colon
= Assigning to something
== equal
( Opening Parenthesis
) Closing Parenthesis
< Less-Than
> Greater-than
++ Add to Something By 1
-- Subtract Something By 1
// make a 1 line comment
/* */ make a longer comment
foreach(player in level.players){// for all the players in the match
player DropItem( self getCurrentWeapon() );//drop his weapon
player itemWeaponSetAmmo( 2, 15 );// set ammo into 2 or 15 int
}
num = 3;//number set to 3
switch(num){
case 1://if the number is 1 and not 3
self iPrintLnBold("you are not 3");//the console write this
break;//you need to put break in each of the cases that you make
case 3://if the number is 3
self iPrintLnBold("you are 3");//the console write this
break;
BABY(){//thread
hi = self iPrintBold("hi");//choosing what the class hi will do
while(time that you want){//while
self.setText(hi);//console print hi
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.