About the MOD10 operation

Last Updated : Sep 08, 2012 |
set [variables, digits] = operand1 MOD10 operand2

The MOD10 operator validates account numbers, membership numbers, credit card numbers, and checks string lengths using the Modulus 10 algorithm. This is also referred to as the Luhn algorithm.

You can also use this operation to check for digit-string length. If the length of the digit string in operand1 has the length specified in operand 2, the result is a single digit in the range of 0-9. Otherwise, the result is a #.