I created a push button with yes no, here is the outcome of no

As you can see, it produces the false output.
If I add the expression ( switch the dynamic content appropriately )
if(equals(triggerBody()['boolean'],false),'No','Yes')
The result is No instead

Start by typing the first part

Switch to dynamic content and select the appropriate Boolean field

Finish the remainder of the expression

I hope this helps
━━━━━━━━━━━━━━━━━━━━━━━━━
If I have answered your question, please mark your post as Solved.
Solved questions helps users in the future who may have the same issue or question quickly find a resolution via search.
If you liked my response, please consider giving it a thumbs up. Thank you!