Handling of data outside a conditional

Is it possible to handle data that is set within a conditional statement…

For example, we may perform a different query on a database depending on the data passed to the api, however the processing we do after the query should be common. Currently I’ve not found a way to make data from a query performed inside a conditional statement to be in scope outside of the condition.

So, we want to do something along the following lines…

if condition
then
   response = perform query A
else
   response = perform query A
end

process response

At the moment we’re having to perform the response processing twice as I’ve not found a way to make the data in scope outside of the conditional statement.

I see that the setValue action has a global option - what is that for? It seemed it might be the answer to this, but setting this doesn’t appear to help.

Thanks.

Community Page
Last updated: