It looks like one feature coming out in 8.0 Android O is the ability to Automatically enable WiFi when you're near a saved network
Can this be accomplished through tasker today?
Enter SSID Network Name(s) / Select Networks currently in Range
This works one at a time, but ideally, you could pull from the current list of saved/configured WiFi networks. Android does keep a list of previously saved networks:
Q: But is there anyway to programmatically retrieve all saved network names and set it as a variable?
Note: Some apps exist like SmartWifiToggler, based on GPS, but I'd rather accomplish through tasker if possible.