IOT Cloud - multiple WIFI credentials and access points

Hi There,
Just starting out with IOT and am trying to figure out how to code an alternate WIFI connection as I don’t want to change the WIFI credentials code every-time I move between work and home.
Have added a second SSID / Password to the secret tab and these work fine if I specifically code them.
What I’m trying to do is undertake a loop between the two lots of AP’s and connect to whichever first succeeds.
I’m using the arduino create online editor.
Looking for advice on how to have one connection object but get it to try multiple AP details as stored in the secret tab.

thingProperties.h

#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>


const char THING_ID[]           = "4c123330-1214-4302-bc11-550b5fd3cb66";
const char DEVICE_LOGIN_NAME[]  = "429642a2-3852-4578-b4cf-59c2624231ed";

const char SSID[]               = SECRET_SSID;    // Network SSID (name)
const char SSID2[]               = SECRET_SSID2;    // Network SSID (name)
const char PASS[]               = SECRET_PASS;    // Network password (use for WPA, or use as key for WEP)
const char PASS2[]               = SECRET_PASS2;    // Network password (use for WPA, or use as key for WEP)
const char DEVICE_KEY[]  = SECRET_DEVICE_KEY;    // Secret device password

void onLightChange();

CloudTemperature temperature;
float humidity;
bool light;

void initProperties(){

  ArduinoCloud.setBoardId(DEVICE_LOGIN_NAME);
  ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);
  ArduinoCloud.setThingId(THING_ID);
  ArduinoCloud.addProperty(temperature, READ, ON_CHANGE, NULL);
  ArduinoCloud.addProperty(humidity, READ, ON_CHANGE, NULL);
  ArduinoCloud.addProperty(light, READWRITE, ON_CHANGE, onLightChange);

}
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);
WiFiConnectionHandler ArduinoIoTSecondConnection(SSID2, PASS2);

INO code

// DHT sensor library - Version: Latest 
#include <DHT.h>
#include <DHT_U.h>

#define DHT11_PIN 2

#define DHTTYPE DHT11

DHT dht(DHT11_PIN, DHTTYPE);

#include "thingProperties.h"

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTSecondConnection);
  Serial.print("Just Begun: ");

  setDebugMessageLevel(4);
  delay(5000);
  ArduinoCloud.printDebugInfo();
  delay(3000);
  Serial.print("Check Connection: ");
 // ArduinoIoTPreferredConnection.check();
  
}

void loop() {
  //ArduinoCloud.update();
  // Your code here 
  Serial.print("Foo");
  ArduinoIoTSecondConnection.check();
delay(1500);

}