getValue method

bool getValue(
  1. String val
)

Implementation

bool getValue(String val){
  int index = colors.indexOf(val);
  if(index == -1) return false;
  return status[index];
}