Actually, there is a way to achieve this more directly.
Instead of putting the condition file name in the loop dialog, add a field to the experiment info dialog that appears before each experiment and insert the name of the conditions file there ( if required, add additional fields for other conditions files). For example, you could add a field called
loop_1_conditions and put the .xlsx or .csv filename in there. Then in the loop dialog you can access that field’s content by putting this in its
You can also access the file name in a code component using the same expression (without the $ symbol).