How to pass an 'if' statement to a python method?
<p>I want to pass an optional 'if' statement to a python method to be executed.  For example, the method might copy some files from one folder to another, but the method could take an optional condition.</p>

<p>So, for example, one call to the method could say "copy the files from source to dest <strong>if source.endswith(".exe")</strong></p>

<p>The next call could be simply to copy the files from source to destination without condition.</p>

<p>The next call could be to copy files from source to destination <strong>if today is monday</strong></p>

<p>How do you pass these conditionals to a method in python?</p>
