

Commandes de Base
nekAfficher
nekAfficher("Bonjour le monde!"); // Affiche: Bonjour le monde!
nekBouger
nekBouger(element, x: 100, y: 50); // Déplace l'élément aux coordonnées (100,50)
Opérations Mathématiques
nekVar nombre = 5 + 3; nekVar resultat = nombre * 2; nekAfficher(resultat); // Affiche: 16
Exemples Pratiques
Calculatrice Simple
nekFonction calculer(a, b) { nekVar somme = a + b; nekVar produit = a * b; nekAfficher("Somme: " + somme); nekAfficher("Produit: " + produit); } calculer(5, 3);
Boucle Simple
nekPour(nekVar i = 0; i < 5; i++) { nekAfficher("Tour " + i); }
Conditions
nekVar age = 18; nekSi(age >= 18) { nekAfficher("Majeur"); } nekSinon { nekAfficher("Mineur"); }