//dimanche If (($Dimanche=1) And ($script_compresseur =1)And ($Weekday = 0) And ($Hour >= $DimStrat) And ($Hour <= $DimEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //lundi If (($Lundi =1)And ($script_compresseur =1)And ($Weekday = 1) And ($Hour >= $LunStrat) And ($Hour <= $LunEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //Mardi If (($Mardi=1) And ($script_compresseur =1)And ($Weekday = 2) And ($Hour >= $MarStrat) And ($Hour <= $MarEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //Mercredi If (($Mercredi =1)And ($script_compresseur =1)And ($Weekday = 3) And ($Hour >= $MerStrat) And ($Hour <= $MerEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //Jeudi If (($Jeudi =1) And ($script_compresseur =1)And($Weekday = 4) And ($Hour >= $JeuStrat) And ($Hour <= $JeuEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //Vendredi If (($Vendredi=1)And ($script_compresseur =1)And($Weekday = 5) And ($Hour >= $VenStrat) And ($Hour <= $VenEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If //Samedi If (($Samedi=1)And ($script_compresseur =1)And($Weekday = 6) And ($Hour >= $SamStrat) And ($Hour <= $SamEnd))Then $EC6_mot_commande = 5 Else $EC6_mot_commande = 6 End If
$Dimancheet tous les autres ?
$Dimanche?