Long ago I raised an issue with the "Switch" control structure, that much functionality was left on the table because of the way the 'break" control structure works. I wanted "Switch" to be able to evaluate each case section on its own merits, without terminating the entire structure when any particular case fires:
Code: Select all
on mouseUp
 switch
      case  1= 1
         add 1 to a
      case 1 = 5000
         add 1 to a
      case 2 = 2
        add 1 to a
   end switch
   answer a
end mouseUpThis is something one can only do with "if/then", which can be far more tedious and complex to write, and to read later.
Anyone else care? I will submit another feature request if I get even one vote, just to annoy the team.
Craig


