IsValid

Determine whether the given value is a string, numeric, or date.Arrays, structs, queries, closures, classes and components, and other complex structures will return false.

Note we expressly do not support the eurodate type, since date formats vary across EU countries. For this, prefer the LSIsDate( date, locale ) method instead.

Method Signature

IsValid(type=[string], value=[any], min=[any], max=[any], pattern=[any])

Arguments

Argument
Type
Required
Description
Default

type

string

true

The type to validate the value against

value

any

true

Value to test for validaty on a given type

min

any

false

The minimum value for the range type or a pattern to validate the value against

max

any

false

The maximum value for the range type

pattern

any

false

The pattern to validate the value against

Examples

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC