Re: [Résolu] Eclairage en fonction de la semaine ( Horaire 3*8 )
Publié : 01 mars 2020, 19:27
tu peux aussi l’écrire comme ceci, autre syntaxe, même fonctionnement :
Code : Tout sélectionner
-- Matin
if num % 3 == 0 then
commandArray['Variable:Semaine 3*8']=tostring(1)
-- Nuit
elseif num % 3 == 1 then
commandArray['Variable:Semaine 3*8']=tostring(2)
-- Après midi
elseif num % 3 == 2 then
commandArray['Variable:Semaine 3*8']=tostring(3)
end