If else condition in stories based on slot value

I want to write a story in such a way that when the user inputs a certain intent, I want to check the slot value, if the slot value has a value set then say action1 otherwise if the slot is empty say action2. The slot value type is text. How can i write this as a story?

If you want to user stories, you need to use a categorical slot.

However, I would instead use a text slot with a rule and a form.