function whatIsOp(rChar){
  switch (rChar){
    case "A":
    case "B":
    case "G":
      rChar = 0;//multiply
      break;
    case "L":
    case "Q":
      rChar = 1;//add
      break;
    case "E":
    case "H":
      rChar = 0;//multiply
      break;
    case "C":
    case "M":
    case "R":
      rChar = 1;//add
      break;
    case "I":
    case "N":
    case "S":
      rChar = 0;//multiply
      break;
    case "D":
    case "J":
      rChar = 1;//add
      break;
    case "O":
    case "F":
    case "K":
      rChar = 0;//multiply
      break;
    case "P":
    case "T":
      rChar = 1;//add
      break;
    case "U":
      rChar = 0;//multiply
      break;
    case "1":
    case "3":
    case "5":
    case "7":
    case "9":
      rChar = 0;
      break;
    case "2":
    case "4":
    case "6":
    case "8":
      rChar = 1;
      break;
    default:
      rChar = 1;//add
      break;
  }
  return rChar;
}
//to decode or encode the string of text. This function replaced the latter two functions.
to decode or encode the string of text. This function replaced the latter two functions.
to decode or encode the string of text . This function replaced the latter two functions .
function whatIsOp(rChar){
  switch (rChar){
    case "A":
    case "B":
    case "G":
      rChar = 0;
      break;
    case "L":
    case "Q":
      rChar = 1;
      break;
    case "E":
    case "H":
      rChar = 0;
      break;
    case "C":
    case "M":
    case "R":
      rChar = 1;
      break;
    case "I":
    case "N":
    case "S":
      rChar = 0;
      break;
    case "D":
    case "J":
      rChar = 1;
      break;
    case "O":
    case "F":
    case "K":
      rChar = 0;
      break;
    case "P":
    case "T":
      rChar = 1;
      break;
    case "U":
      rChar = 0;
      break;
    case "1":
    case "3":
    case "5":
    case "7":
    case "9":
      rChar = 0;
      break;
    case "2":
    case "4":
    case "6":
    case "8":
      rChar = 1;
      break;
    default:
      rChar = 1;
      break;
  }
  return rChar;
}
function whatIsOp ( rChar ) { switch ( rChar ) { case "A" : case "B" : case "G" : rChar = 0 ; break ; case "L" : case "Q" : rChar = 1 ; break ; case "E" : case "H" : rChar = 0 ; break ; case "C" : case "M" : case "R" : rChar = 1 ; break ; case "I" : case "N" : case "S" : rChar = 0 ; break ; case "D" : case "J" : rChar = 1 ; break ; case "O" : case "F" : case "K" : rChar = 0 ; break ; case "P" : case "T" : rChar = 1 ; break ; case "U" : rChar = 0 ; break ; case "1" : case "3" : case "5" : case "7" : case "9" : rChar = 0 ; break ; case "2" : case "4" : case "6" : case "8" : rChar = 1 ; break ; default : rChar = 1 ; break ; } return rChar ; }
to decode or encode the string of text.
to decode or encode the string of text .
//multiply //add //multiply //add //multiply //add //multiply //add //multiply //add