Resetting variables

Options

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

  • Lachlan
    Lachlan Administrator

    ADMIN

    Options

    Hi There,

    That's correct, who ever wins the if/else condition, the output of the edit record step variable user is what will be returned.

  • Phillip Rousu
    Phillip Rousu Member
    edited November 2023
    Options

    @Lachlan Sweet, but under no circumstances will the user ever be the initial GET request after the if/else?

  • Lachlan
    Lachlan Administrator

    ADMIN

    Options

    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.