Resetting variables
Given multiple returns all with the same name, is the last one invocation the latest value? Intuitively that would make sense but I want to be certain, please see screenshot.. who ever wins the if/else condition is the user that is returned right?
Answers
-
Hi There,
That's correct, who ever wins the if/else condition, the output of the edit record step variableuser
is what will be returned. -
@Lachlan Sweet, but under no circumstances will the
user
ever be the initial GET request after the if/else? -
That's correct, the condition will always result in either a True or False meaning it will be the Then or Else variable.
The function stack processes in a linear order from top to bottom, meaning each step will process before the next, the most recent update to a variable is what the result will be.
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