datapack toggels with data storage

I've seen datapacks have popups in chat where you can toggle some features I've see them do it with execute if data storage but i don't quite get how to use it
Continue to help post