does validateOrFail support "short-circuiting"? e....
# box-products
d
does validateOrFail support "short-circuiting"? e.g. in the following, stop running after the
required:true
check fails
Copy code
values = {
	plus10MustBeLessThan99999: nullvalue()
}

validateOrFail(
	target = values,
	constraints = {
		plus10MustBeLessThan99999: {
			required: true,
			type: "numeric",
			udf: (v) => { // is it possible to not run this if the earlier `required` check does not pass?
				return v + 10 < 99999; // error: variable "v" doesn't exist
			}
		}
	}
);