Break in for each row

Hello ! I have a datatable and I want to write in a specific cell when condition is met … I used for each row … inside it I used if condition write cell … but I want to exit the loop just after writing this cell … The problem that I tried to use break … but it leaft the loop before writing … I got the same result even when I changed the place of break ( although I used it usually inside the for each row )
hope you help me !
thank you

@firas_yahya1

Welcome to forums,

Check as below

Above that screenshot, I am able to write the False to my excel and after that it Breaks the For-Each Row

Share your xaml file, so that we can check

Thanks

Welcome to the community. You should follow what the OP suggested you already. All the best!


sorry … I used write range not write cell !

@ksrinu070184

the_final_inchAllah.xaml (67.1 KB)
@ksrinu070184

@firas_yahya1

Check as below

There were some duplicates of variables,

better use the clear variables and try

Mark as solution if this helps

Thanks

@ksrinu070184 I still get the same problem … did it worked for you ? please check and tell me

@firas_yahya1

Share your excel file, I will check and let you know

Thanks