When using the 3 button option, the Yes button can be checked by comparing with $true, the No button with $false and the Cancel button with $null

If there's documentation to show this, I haven't found it. I found this information using trial and error.