HOW: Run shortcut with variable from automation

How do I use data in the shortcut i’m triggering from my automation? The shortcut i’m triggering from my automation is now called ‘If’. In that shortcut how do i use the data (variable) that i added?

Here is a shortcut to be called.

This shortcut should pass the previous one the name of the device in the same type of setup you have.

This one flows your entered text through.

I tend to flow text as the input variable ihas been buggy for me.

Thanks! That works perfectly!