"Variable out of Scope!"

That green block is only in scope within the bounds of the “then do” section of the block from which it was pulled.