syntaxe

array

vector ptNum[];
int npoint = @numpt; 
// remplir un tableau
for (int i=0;i<npoint;i++){
vector pos = point(0,"P",i);
append(ptNum,pos);
}
v[]@myArray=ptNum;
//lire un tableau
foreach(vector singlePos;ptNum){
v@x = singlePos[0];
}

fonctionSyntaxe

//syntaxeFonction

float div(float a;float b){
float c = a/b;
return c;
}

f@myDiv = div(4,2);

for

int maxIt = chi("maxIt");

for (int i=0; i<maxIt; i++) {
}

foreach

int my_array[];

foreach( int val; my_array){ 
}

foreach( int index; int val; my_array){ 
}

if

if (x>y){
}

while

int i = 0; 
int condition = 10;

while( i < condition){ 
i++;
}
VEX