mardi 8 janvier 2019

can u help me to make it simple i to get the set number and this to days ex. date 11 + everyset then excute when rich the 30 minus 30 and excute again

if (everyset == 1) { conditionstation1(); } if (everyset == 2) { if (now.day() % 2 == 0) { conditionstation1(); } } if (everyset == 3) { if (now.day() == 3 || now.day() == 6 || now.day() == 9 || now.day() == 12 || now.day() == 15 || now.day() == 18 || now.day() == 21 || now.day() == 24 || now.day() == 27 || now.day() == 30) { conditionstation1(); } } if (everyset == 4) { if (now.day() == 4 || now.day() == 8 || now.day() == 16 || now.day() == 20 || now.day() == 24 || now.day() == 28 || now.day() == 31) { conditionstation1(); } } if (everyset == 5) {

if (now.day() == 5 || now.day() == 10 || now.day() == 15 || now.day() == 20 || now.day() == 25 || now.day() == 30)
{
  conditionstation1();
}   }   if (everyset == 6)   {
if (now.day() == 5 || now.day() == 10 || now.day() == 15 || now.day() == 20 || now.day() == 25 || now.day() == 30)
{
  conditionstation1();
}   }   if (everyset == 7)   {
if (now.day() == 7 || now.day() == 14 || now.day() == 21 || now.day() == 28)
{
  conditionstation1();
}   }

Blockquote

Aucun commentaire:

Enregistrer un commentaire