How to identify a module for an if/then command?

I need to base an action in a program on a condition. That condition is if a particular module switch is ON or OFF.

I cannot figure out what parameter that would be?

Have you read the HG documentaion?
https://genielabs.github.io/HomeGenie/api/mig/overview.html
How are you creating the program? Wizard script, C#…?

Thanks. I have read many times. I gave up trying to figure it out once I relearned I can hit CAPTURE in program page get it for me.