Possible to modify function variables inside of lambda function?
Options
Kevin Wasie
Member ✭
Is it possible to modify a function-stack variable from inside of a lambda function?
i've tried everything I can think of.
I want to do something like this:
Create Variable: as foo
Lambda function {
$var.foo = "testing";
}
Response: return var:foo[Screen Shot 2022-04-21 at 12.52.19 AM.png]
the value persists inside of the lambda function, but disappears outside of it.
i've tried everything I can think of.
I want to do something like this:
Create Variable: as foo
Lambda function {
$var.foo = "testing";
}
Response: return var:foo[Screen Shot 2022-04-21 at 12.52.19 AM.png]
the value persists inside of the lambda function, but disappears outside of it.
Comments
-
At the moment you can only return a value from a lambda. The variables that are accessible are read only. Good idea though. You can make requests like this on our roadmap board and if it get votes it helps us prioritize updates.
-
@Sean Montgomery Is it currently possible to update the value of a variable through a lambda function?
Furthermore, is it possible to call a custom function through lambda?
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback