Multiple condition if-statement not working (using OR)

@kscholiadis

const getCommonRules = () => value.length < 1 || value.length >13 // add other common rules if needed;
$w('#input1').onCustomValidation((value, reject) =>{
if(getCommonRules() /* && a spcific rule*/){
reject("invalid num of chars");//or another message
}
}
$w('#input2').onCustomValidation((value, reject)=>{
if(getCommonRules()){
reject("invalid num of chars");
}
}
//etc.. set the onCustomValidation for each input element