Can you pass a reference to a list based on condition?

0
Hello,   I want to create an object or a list with specific attribute values based on a condition. So I place a decision block and do that, but then I want to merge those lines and work with a single object reference. Just like I am used to from other programming languages.   Object obj; if (useExternal) { obj = getExternal(); } else { obj = getInternal(); } processObject(obj);   Below is an example of a microflow where I "solve" this issue, but it looks awful to me. Can you please share with me how do you solve this "issue"?   Edit: By awful I mean not as performant as simply passing a reference to an object.     Thanks, Jakub
asked
1 answers
0

Hi Jakub

 

The example you gave seems to be accomplish the same exact goal as the "programming" example you gave.  The microflow example also does so in a similarly performant manner as the "programming" example (base level programming language efficiencies aside).

 

Could you clarify what looks awful about this?  Is it a question of aesthetics or function?

answered