Simple On/Off Switch with Exec-Command

The problem is solved.
At a other topic, the problem discussed.

And in this topic the solution was created:

Thanks to you.

How can i close the topic?