What's wrong with my script? #99
hairui
started this conversation in
Script help
Replies: 1 comment 1 reply
-
The problem is with the way #regex works, which causes problems with #local and #return. Your code would work with #if and #else, but #regex has its own scope. The following ought to work:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a script to convert time description to seconds number. which like :
Things seemed all ok.
This time I can see the script calculate the time and try to return it. But the function returns a value 0.
Again I can see the output of expected
33 seconds
. But the return value is 0 again.I was so puzzled. Why can't I get the result value as expected?
~ ~
Beta Was this translation helpful? Give feedback.
All reactions