If Statement condition c# is not working

Hi all,

I have solved the issue by adding “if sequence” from UIpath:

However, I’m not sure this is the most efficient way, from my point of view a single c # expression runs faster than the uipath sequence… am I wrong?

I would prefer to have the c# expression, any ideas?

Thanks !