Feb. 14, 2014
6:51 a.m.
On Fri, Feb 14, 2014 at 5:49 PM, Michele Lacchia <michelelacchia@gmail.com> wrote:
You could gather all the functions in a list and then iterate and break when needed:
for func in [f1, f2, f3, f4]: x = func() if x: # bla bla break
Sorry for the indentation if it's not right, I'm writing from my phone.
The indentation's fine, but this still assumes that the 'if x' block in each case is the same. ChrisA