<div>Hello</div>
<div> </div>
<div>I want myfunction in the pseudocode below return something different if it was called from indexfunction.</div>
<div> </div>
<div>def indexfunction():<br> blah</div>
<div> </div>
<div>def myfunction():<br> x = 'whatever'<br> if <myfunction was called from indexfunction>:<br> return x<br> else:<br> return <header> + x + <footer> </div>
<div> </div>
<div> </div>
<div>Thanks</div>
<div>Ben</div>