Switch issue in uipath

i have used switch

condition i have written
fileexist and (there is one column in excel sheet name of excel sheet is filtereddt)filterdt(“columnname”).equals("N)

in excel sheet that column is Y
then also it is coming in false loop and performing steps

it should come in true.

i used Or also
then also its coming also loop

By switch do you mean an if, cause why would you use a switch if you expect a bolean value?
Maybe post your code, cause I have a hard time understanding what you mean