3 Replies Latest reply on Jun 16, 2006 6:50 AM by kglad

    looping setting up of variables

    Digital_Visual
      Is there an easier way to loop this to set to check and set varables 0 - 100 without typing out 100 times??

      if (C60 == "60") { C60 = "on"; } else { C60 = "off"; }
      if (C61 == "61") { C61 = "on"; } else { C61 = "off"; }
      if (C62 == "62") { C62 = "on"; } else { C62 = "off"; }
      if (C63 == "63") { C63 = "on"; } else { C63 = "off"; }
      if (C64 == "64") { C64 = "on"; } else { C64 = "off"; }
      if (C65 == "65") { C65 = "on"; } else { C65 = "off"; }
      if (C66 == "66") { C66 = "on"; } else { C66 = "off"; }
      if (C67 == "67") { C67 = "on"; } else { C67 = "off"; }
      if (C68 == "68") { C68 = "on"; } else { C68 = "off"; }
      if (C69 == "69") { C69 = "on"; } else { C69 = "off"; }