//echo -a $input(title,env,prompt,edit)
This returns edit/$null/$null
Should return: edit/$no/$cancel

So it returns $null for 2 buttons. I cannot find out if the no or the cancel button was pressed.

Read more here