HELP : Display as a text my loop variable

Thanks for your help

Description of the problem:
I display a series of images via 3 loops
A) the first loop i which will read from the file NumBloc.xls the name of the file of the series. it is my variable $blocnumber

B) the second loop j will read from the file $blocnumber.xls the condition of the experiment $conditionFile

C) And finally the 3rd loop I randomly present the images contained in the file $NumFile.xls via the variable $Filename

the display seems to be done well but In order to debug
I want to display under the stimulus image the variables
$blocnumber
$conditionFile
$Filename

in order to verify that I will look for my stimulus image in the right file according to the conditions i,j

but I get the following error
text=blocnumber,
NameError: name ‘blocnumber’ is not defined

Is your text component set to update every repeat or is it still constant?

the text component is updated at each iteration of the loop

Please could you show the text component where blocnumber is used and the loop definition for Series_1_4_Cond_Lateralite where it gets definied?

thanks for your help
this is the content of first file blocnumber.xls for the 1st loop

blocnumber
bloc1.xlsx
bloc2.xlsx
bloc3.xlsx
bloc4.xlsx

=============

The error is from the text component. Please could you show that?

when i use the variable $Filename it’s ok but not for others variables

You text component is constant. The value is not available at the start of the experiment.

1 Like

it works now
all my gratitude

Best regards