I've an if condition which have four or operators in it and it is possible that in future more or operators condition could be added in the if statement. I want to know is there any way we could refactor the condition or improve it.
$setRequired = FALSE;
if($conditionValue['value1'] || $conditionValue['value2'] || $conditionValue['value3'] || $conditionValue['value4']){
$setRequired = TRUE;
}
Any help would be appreaciated.