Adding condition on popup

I want to display my popup only when certain conditions are met. What should I do?

The way to do it is to use a condition on the workflow that shows the popup. The condition lesson is the best place to start.