def onlyif(condition, msg):
if callable(condition):<EOL><INDENT>skip_condition = lambda : not condition()<EOL><DEDENT>else:<EOL><INDENT>skip_condition = lambda : not condition<EOL><DEDENT>return skipif(skip_condition, msg)<EOL>
The reverse from skipif, see skipif for details.