eg:
<script>
function isConditionTrue(c1,c2,c3,c4) {
if ((c1 + c2 + c3 + c4) > 1) {
return true;
}
return false;
}
alert(isConditionTrue(true,false,false,true));
</script>
This method will return true as two of the conditions are true.
Note: the boolean values are treated as numbers(false - 0, true - 1) when used inside algebraic expression.