Quartermaster VALIDATE dialect

validate [number "5"][
    number: integer! is less than 6
]
== [number 5]

validate/report-to [number "8"][
    number: integer! else "Number is not a number!"
    is less than 5 else "Number is too high!"
] errs: []

probe errs
== [
    number ["Number is too high"]
]

Source is here:

1 Like