passing boolean condition as parameter
<p>I have these</p>

<pre><code>def MsgBox1_YesChosen(sender,e):
    if e.Key != "A": function0() 
    else: 
        function1()
        function2()
        function3()

def MsgBox1_NoChosen(sender,e):
    if e.Key == "A": function0() 
    else: 
        function1()
        function2()
        function3()
</code></pre>

<p>can both def be merged together? The only difference between them is "==" , "!="</p>
