Besoin d'aide programmation small basic

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

2 réponses

  • Votes
  • Date
  • Date décroissante
  1. 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
    1. 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