If buttonB means If buttonB=1.

Is a default.

A pure boolean logic.

Darrel gets the most elegant so far coding

Ioannis