- Joined
- Jul 9, 2024
- Messages
- 14
- Reaction score
- 10
Got an unusual scenario here, where the customer has multiple sites all on the same parent database system, but with unique sub-domains for each site. Example: site1.system.com, site2.system.com
I have a script which makes the necessary calls for a single domain URL- is there a way I could change it up so if the first lookup doesn't return a number, it works through the next lookup scenario trying the next domain until all are exhausted or one does return a result?
I am aware this would be incredibly inefficient (would involve making multiple redundant API requests for each incoming call). Is it even possible? For example, something like:
try site1.system.com
if(scenario1result == true, go to scenario1return)
else(go to scenario2)
try site2.system.com
if(scenario2result == true, go to scenario2return)
else(go to scenario3)
and so on.
I have a script which makes the necessary calls for a single domain URL- is there a way I could change it up so if the first lookup doesn't return a number, it works through the next lookup scenario trying the next domain until all are exhausted or one does return a result?
I am aware this would be incredibly inefficient (would involve making multiple redundant API requests for each incoming call). Is it even possible? For example, something like:
try site1.system.com
if(scenario1result == true, go to scenario1return)
else(go to scenario2)
try site2.system.com
if(scenario2result == true, go to scenario2return)
else(go to scenario3)
and so on.