Checking Boolean slot in story rasa 2.3

Hi.

I want a custom action to set a boolean slots value( Is there any other way to set boolean slot?). In a few steps later, I want to check slots value and depending on the value I want to return a different response to user. I am not sure how to write this story in rasa 2.3. It would be great to have some examples. Do I have to use custom action to check slots value or can I write a story for it?