I'm trying to implement a yup validation schema and lets say I have five numeric values (A, B, C, D, E)
I want D and E be less than a math function based on A,B,C and some constant value. Something like this:
const upperBound = Math.min(A,B,C)-10;
if((D > upperBound) || (E > upperBound))
return FAIL;
else
return PASS;
I have reviewed many threads on SO but none of them address multiple variable dependency. Thanks.