ESP8266-improved-WIFI-connect-code-for-multiple-SSID, example shown is for two SSID, if first fails than second is tried.
Of course the code can be extended to have more than two SSID's , feel free to play with this. This example code is only published to show how to connect to multiple SSID's. Feel free to modify and improve.
The example file shows the code.....
It shows also how to do a DHCP dynamic address or a static address to be assigned to your ESP3266 device.