i can't figure it out how to do this and all other tutorials are outdated and i have not some options they do (like a check box next to the time to set variable). so please don't mark this question as duplicate.
with that said; i have a profile which turn WiFi on when i unlock my phone. i want that to also ping Google DNS and if it get time out turn WiFi off if not keep the wifi connected.