In line or 'local' variable option when making matches? #227
elminster3k
started this conversation in
Script help
Replies: 1 comment
-
It's not possible, if you want to assign variables in a substitution you could use something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When doing pattern captures, I'm wondering if there is a way to set the variable during the capture, maybe thought of as a local scope variable, for example, rather than this:
{My name is %1} {#var name %1}
It would be something like this:
{My name is {$name}} -- Just making up syntax here, since I'm not sure what this would look like..
So in the second example, the variable is defined as it makes the match, scoped locally for that action only etc.
Beta Was this translation helpful? Give feedback.
All reactions