doc: french doc "développez en Nit"
[nit.git] / doc / developpez / syntaxe / listings / if_c.nit
1 var booleen = true
2 if booleen then
3 print "Le booléen vaut TRUE !"
4 else
5 print "Le booléen vaut FALSE !"
6 end
7 #Affiche "Le booléen vaut TRUE !"
8
9 var ma_var = 1
10 if ma_var < 0 then
11 print "ma_var est negative"
12 else if ma_var > 0 then
13 print "ma_var est positive"
14 else
15 print "ma_var = 0"
16 end
17 #Affiche "ma_var est positive"