The goal is to change the behaviour in an event loop, depending on whether a checkbox is toggled on or off. The simplest way, that I can think of, is just to test the checkb
To get exact results, time measurements would be needed, but: I´m certain that a if has less overhead than a full function call. ->If is faster