expr icon indicating copy to clipboard operation
expr copied to clipboard

define expr global variables ?

Open AprilFiv opened this issue 3 years ago • 3 comments

Can we set some variables into env and use them in custom functions?

AprilFiv avatar May 22 '22 15:05 AprilFiv

You can do it via method. Define custom func on env struct and access var from env.

antonmedv avatar May 22 '22 17:05 antonmedv

You can do it via method. Define custom func on env struct and access var from env.

Thanks to reply. I mean if we use a custom func to set some variables, can we use them in another custom func?

AprilFiv avatar May 23 '22 02:05 AprilFiv

You can do it via method. Define custom func on env struct and access var from env.

I have known we could use env in script, I didn't notice any api of package to support custom function use env, may be a reference...

AprilFiv avatar May 23 '22 02:05 AprilFiv

I'm working on variables)

antonmedv avatar Nov 05 '22 18:11 antonmedv

Duplicate of #101

antonmedv avatar Nov 05 '22 18:11 antonmedv