Hello everyone!
I have a question related to a Python script node. I want to use this node to check a data of a column and send evaluated values to output table.
I don’t know anything about Python But I found the evaluation Script from the internet.
Is there any to say how to use this script by python script node. I know this should be so simple.
here is the python code I found:
import re
def is_valid(input: str) -> bool:
if not re.search(r'^\d{10}$', input): return False
check = int(input[9])
s = sum(int(input[x]) * (10 - x) for x in range(9)) % 11
return check == s if s < 2 else check + s == 11
Thanks , BR