How to stop process if no new mail appears

hi guys,
I am using get Outlook Mail messages to extract pdfs from emails. i am using a flowchart to do the whole thing. i want to stop the process when no new mail.

HI @Shazid_Rahman

After getting the messages and store it in a Mail Message

Use Flow Decision and give condition as MailMessage.Count>1
- In False use Throw Activity and it will be stopped if no mail is available

Hope this Helps

Regards
Gokul

Hi @Shazid_Rahman ,
It will be helpful to define a condition inside an if activity as follows.