How to use LUA get radio state

I need to get radio status and control AUX in LUA.
But before I used LUA very rarely, I just had control LEDs.
And I also don’t have a way to get the radio status in the example.
I want to control an LED matrix with a radio switch.