Skip to manual
gluon

Expression functions

gluon.iban.valid(value)

Checks that a string is a well-formed IBAN with a correct check number.

Model author or developer

Example

CEL
gluon.iban.valid("NL91 ABNA 0417 1643 00")

This returns true. Change the last digit and it returns false.

Types

The type checker knows it as gluon.iban.valid(string) -> bool. Call it in any GOL field that takes CEL: a Function, a derived property, a constraint or a policy condition.

Limits

It removes spaces, uppercases the value, checks the shape (two letters, two digits, then 11 to 30 letters or digits) and applies the mod-97 check. A true result tells you nothing about whether the account exists or who holds it.

Guard optional inputs with has(). In a policy, an evaluation error denies. An expression that does not parse, runs past 2,000 characters or nests too deeply is GLN-E201, and one whose result has the wrong type is GLN-E202.

See Function, Test and the language guide.

gluon.iban.valid(value) evaluated by Gluon's CEL runtime.
gluon.iban.valid(value) evaluated by Gluon's CEL runtime.