JDM type-x bumper lights

Sorry to go off-topic, but since I’ll be getting the 1/2 clears for my Zenki, I wanted to ask it now:

How do they work? I noticed that there is only one plug, how does it know when to work just the clear light and the orange signal light? Or when to be on at the same time (if that does happen)? Its intrigued me for a while now.

When I do eventually get these, are they just plug and play?