Compare component does not recognize global variable?

I have set a global variable @del_flag and setting its value in pilot script priot to the Compare but I get following error on the compare component (config shown in the screenshot below)

 

line 5, The expression was trying to access the value of a GLOBAL property '' but it is undefined. One solution is to edit the PilotScript to test whether the property is defined before using it. This is done with the expression: @'' IS DEFINED.

 

 

The global property is defined in step 1  like this

The pipeline looks like this: