I tried this first, and got "Error: Expected to find \'case\'."
switch (value.toInt()) { for (int i=0; i<8; i++)