You need to check it with Power Fx syntax. Like this:
=ButtonPressed = "OK"
Change the "OK" to be "Open" if that is the ButtonPressed variables output (like when using select file dialog -action")
Other way:
=If(ButtonPressed = "OK", true, false)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.