Besoin d'aide programmation small basic

Fermé
lekeke - 18 avril 2010 à 23:12
 lekeke - 19 avril 2010 à 12:28
bosoir,je debute avec small basic et je cherche une ligne de code qui emploi la reponce precedente pour y repondre,exemple:

TextWindow.WriteLine("ca va?")

Si la reponce tape est oui:
TextWindow.WriteLine("cool")

Si la reponce est non:
TextWindow.WriteLine("dommage")

Doit t'on employé " ... = TextWindow.Read()"

Merci de votre aide
A voir également:

2 réponses

Utilisateur anonyme
19 avril 2010 à 01:32
bonjour,
oui oui, c'est ce qu'il faut, plus une strecture alternative:

TextWindow.WriteLine("ca va?")
votreEtat=TextWindows.Read()

if(votreEtat=O") then
TextWindow.WriteLine("cool")
else
TextWindow.WriteLine("dommage")
endif
0
Merci de votre reponce,cela ma baucoup aidé,je le remarque en fonctionel:

TextWindow.WriteLine("ca va?")
votreEtat=TextWindow.Read()
if(votreEtat="oui") then
TextWindow.WriteLine("cool")
else
TextWindow.WriteLine("dommage")
endif
0