I have a txt that contains in each line a sentence like this: INT_ASTIK_EAS ER_ASTOM_ASTIK and so on. I want to ask for a directory of the main folder that contains the subfolders that each contain the `ASTIK.shp`, then the `EAS.shp`, then the `ASTOM.shp`, etc `INT` means to perform an intersection with this code where in this case should involve `ASTIK` and `EAS` shapefiles. inte_s=gpd.overlay(ASTIK,EAS,how='intersection') and check if it has no info in the attribute table. Then go the to the other line and `catch on` the meaning of the line and perform `erase` between the two named shapefiles. Find them and perform it.How do i do that without making a lot of conditions and line by line: like directory=input('Insert dir of the main folder') If 'INT' in firstline of txt in directory and ASTOM and EAS: perform interesection between those. i don't think the only way is to create hundreads of if conditions that will probably never be valid. How should i do it?