I am using below logic for checking particular string matching with other string or not
if (searchTxt == "All" || searchTxt == "WORD1" || searchTxt == 'WORD2' || searchTxt == 'WORD3' || searchTxt == 'WORD4' || searchTxt == 'WORD5') {
}
Above code is working fine but showing warning
Reduce the number of conditional operators (5) used in the expression (maximum allowed 3)
.
How to resolve this warning