Checks that the given sequence is valid according to the Luhn formula.
sIDNumber is string = EDT_IDNum
IF LuhnCheck(sIDNumber) THEN
Info("Valid number")
ELSE
Info("Invalid number")
END
Syntax
<Result> = LuhnCheck(<Identifier>)
<Result>: Boolean
- True if the sequence is valid according to the Luhn formula,
- False otherwise.
<Identifier>: Character string
Sequence composed of numbers and spaces only (spaces are not relevant for the formula).
Business / UI classification: Neutral code