I have an if/else statement that I need to refactor and clean up so that I can shorten the amount of code I am using. The variables are being checked to see if they are not equal to the string 'TD'. What would be the best course of action to rewrite the if/else statement and/or make it shorter?
if ((VS_TDO1 != "TD") && (VS_TDO2 != "TD") && (VS_TDO3 != "TD") && (VS_TDO4 != "TD") && (VS_TDO5 != "TD") && (VS_TDO6 != "TD") && (VS_TDO7 != "TD") && (VS_TDO8 != "TD") && (VS_TDO9 != "TD") && (VS_TD10 != "TD") && (VS_TD11 != "TD") && (VS_TD12 != "TD")) {
OPT_TDTD = "NO";
} else {
OPT_TDTD = "YES";
}