Here is an example function that takes a string input and returns 1 if the string is exactly 13 characters long, and 0 otherwise:
main.m146 chars8 lines
You can call this function with any string input:
main.m85 chars8 lines
Note that this function uses an if-statement to check whether the length of the input string is equal to 13, and sets the output variable accordingly.
gistlibby LogSnag