--- title: "checksum 2 of 5()" slug: "basic-2-of-5-checksum" updated: 2026-08-11T07:00:37Z published: 2026-08-11T07:00:37Z canonical: "docs.lobstersoftware.com/basic-2-of-5-checksum" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # checksum 2 of 5() Creates a checksum for '2 of 5' barcodes (MOD 10). The number of characters of the barcode must be uneven. For an even number, the value must be preceded by a "*0"*. ## Parameters | Parameter | Description | | --- | --- | | a | Value to create checksum for. **NOTE:** The type of the field on which the function is executed and variables containing the value should be of type *String* so that leading zeros are not removed. | ## Examples | Parameter a | Result | | --- | --- | | 12345 | 7 | | 1234 | Aborts with an error. | | 01234 | 8 |