Config_db dynamic connection

In reply to dave_59:

Can I use this syntax inside a for loop ??