if#
- arte.contrib.if_.if_(condition, warning=None)#
Decorator to turn a function into a NO-OP if the condition is not met. Source: https://stackoverflow.com/questions/17946024/deactivate-function-with-decorator
Example: @if_(global_enable) def do_something():
…