I'm not sure what the intent of this logic is due to the unclear variable names, but boolean expressions cannot be used in the way you're trying to use them here. This will evaluate `g[0] && g[1] && g[2] && g[4]` as though those variables were booleans, then evaluate `'I' || 'V' || 'X' || 'L' || 'C' || 'M'` as though those strings were booleans, then compare those two values for equality.