Why isn’t the following invoke code working for me? Always return false.
parameter cuitEnMemoria: 2026050587
Codigo:
Why isn’t the following invoke code working for me? Always return false.
parameter cuitEnMemoria: 2026050587
Codigo:
Behold what I have discovered. If I replace the variable with the number directly, it correctly returns the value (true). However, if I leave the variable, it always returns false.
Hi,
The input string seems 10 digits. However, the regex pattern requires 11 digits at least. So it returns false.
If you also need to match the string, can you try to replace {9} with {8,9} in the pattern, for example?
Regards,
However, if you observe the image I sent later, when I input the variable’s value directly, it returns correctly. I don’t believe the issue lies in the number of digits, However, I shall verify it.
In the end, it was as you said, although I still have doubts because “20260505867.tostring()” returned True, yet when I assign it to a variable, it returns false.
Hi,
Can you share your workflow as file? It’s no problem if dummy workflow which can be reproduced the issue.
Regards,
Apologies, I deleted the code as soon as I found the solution, but it is nothing more than what I posted above.
HI,
FYI, in my environment, it also works well, as the following.
Sample
Sample20240918-1.zip (2.4 KB)
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.