FMessageDialog, EAppMsgType::YesNo example? The code under Yes button also executes on No button

Where can I look at an example of how a FMessageDialog::Open(EAppMsgType::YesNo) is implemented?

I can execute something from clicking yes, but clicking no does the same thing. How can I execute something under the no option?

FMessageDialog::Open(EAppMsgType::YesNo, DialogText, &MessageTitle);
    {
        if(EAppReturnType::Yes)
        {
            //code successfully executes when clicking Yes in dialog
            
        }
        if(EAppReturnType::No)
        {
            //same code as Yes executes, IDE says this section has "unreachable code"
        }
    }

can you track your code when you click “No”, put a trap at line number 3 and look variables ?

You need to check against the actual result of calling the function.
Something like this:

EAppReturnType ReturnType = FMessageDialog::Open(EAppMsgType::YesNo, DialogText, &MessageTitle);
if (ReturnType == EAppReturnType::Yes)
{
	...
}
else
{
	...
}

thank you, that was the solution

const EAppReturnType::Type Choice =  FMessageDialog::Open(EAppMsgType::YesNo, EAppReturnType::No, DialogText, &MessageTitleText);
	{
		
		if(Choice == EAppReturnType::Yes)
		{
			//...	
		}
		if(Choice == EAppReturnType::No)
		{
			/...
		}
	}
}