How to create a logic button like Figma variables add-on?

Hello community,

I create an interactive e-learning course on penpot. So, I want to create a specific slide about a quiz.
The logic is the user to click the option that has as possible answers and then with a button to have a confirmation check. With Figma this could be done with a plugin called variables. Is something similar to do with penpot? How to create a logic button that when you click on it, you will receive a specific answer (correct or not) regarding the check box from your answers?

Thank you in advance