Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script avec condition ou
#3
ok je m"en doutais un peu concernant les caractères spéciaux

Si je comprend bien mon script complet devrait ressembler à ca ...

Code:
Print("Fenêtre étage ouverte")

-------------------------------------------
Local Fenetre_Bureau = calaos:getInputValue("input_117")
Local Fenetre_Juliette = calaos:getInputValue("input_123")
Local Fenetre_Charlotte = calaos:getInputValue("input_122")
Local Fenetre_SdBP = calaos:getInputValue("input_121")
Local Fenetre_Parents = calaos:getInputValue("input_120")
Local Fenetre_Buanderie = calaos:getInputValue("input_119")
Local Fenetre_SdBE = calaos:getInputValue("input_118")
---------------------------------------------------

--- Au moins une fenêtre ouverte
If Fenetre_Bureau = true or Fenetre_Juliette = true or Fenetre_Charlotte = true or Fenetre_SdBP = true or Fenetre_Parents = true or Fenetre_Buanderie = true or Fenetre_SdB = trueE then

Return true

--- aucune fenêtre ouverte

Else

Return false

done

Je ne comprend pas forcement le "else" et le "done" aurrais tu une table concernant ces point
Calaos v1.1.20 sur Advantech | Ecran tactile | Wago 750-849 | DALI halogène + LED RGB | Intrusion KSENIA
Squeezebox on Raspberry | Zibase Pro (Enocean+Zwave+Oregon) | Ecodevice | Script LUA | Hyperviseur en court de test
Test v2 RC2 automate + serveur sur réseau identique
Reply


Messages In This Thread
Script avec condition ou - by tom - 12-22-2014, 01:25 PM
RE: Script avec condition ou - by raoulh - 12-22-2014, 01:35 PM
RE: Script avec condition ou - by tom - 12-22-2014, 03:37 PM
RE: Script avec condition ou - by raoulh - 12-22-2014, 04:27 PM
RE: Script avec condition ou - by tom - 12-23-2014, 06:45 PM
RE: Script avec condition ou - by tom - 12-23-2014, 11:13 PM
RE: Script avec condition ou - by raoulh - 12-27-2014, 10:01 PM
RE: Script avec condition ou - by tom - 12-27-2014, 11:18 PM
RE: Script avec condition ou - by raoulh - 12-28-2014, 01:39 PM
RE: Script avec condition ou - by tom - 12-28-2014, 02:26 PM
RE: Script avec condition ou - by raoulh - 12-28-2014, 02:34 PM
RE: Script avec condition ou - by tom - 01-02-2015, 05:35 PM
RE: Script avec condition ou - by raoulh - 01-02-2015, 09:39 PM
RE: Script avec condition ou - by tom - 01-02-2015, 09:50 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)