How to output/send a variable which is conditionally set in a repeat block at the back-end to the front-end

Hello Wappler community,

I’ve made a variable at the back-end server connect
This variable is set inside a repeat block according to a condition
after the repeat is done I want to send this variable to the front-end to be available inside a dynamic picker

As of now, this variable is set to undefined right before the repeat block
And it is modified using the ‘Global Name’ field inside the repeat block
This is set to output at the front-end but when I use it in the dynamic picker, it retains its value as undefined which was set before the repeat block

Here is the server connect steps where the value is initially set to undefined, before the repeat :

Here is the value being conditionally defined inside the repeat block:

Inside the dynamic picker at the front-end, only the value set before the repeat block is being shown:

Hence, when used, its value is undefined at the front-end
How do I use the value set conditionally inside the repeat block?

@patrick @Teodor could I please get some help regarding this? Thank you