Wifi toggle action

I don't get the point of the wifi toggle action. It appears to disable wifi when wifi is enabled and enable wifi when wifi is disabled but I can't know which will occur until I test the wifi state. I see no point in randomly changing the wifi state.

If I have to test the wifi state, then I know from the test result if I should use enable wifi or disable wifi, depending on my purpose.

Why does the action Toggle Wi-Fi exist, and what is the best way to use it?
 
Top