# How to compare a FString in C++ Condition Breakpoints?

**URL:** <https://forums.unrealengine.com/t/how-to-compare-a-fstring-in-c-condition-breakpoints/358380>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 24, 2016, 6:52am UTC](https://forums.unrealengine.com/t/how-to-compare-a-fstring-in-c-condition-breakpoints/358380 "2016-05-24T06:52:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [May 24, 2016, 10:26am UTC](https://forums.unrealengine.com/t/how-to-compare-a-fstring-in-c-condition-breakpoints/358380/3 "2016-05-24T10:26:15Z")

</div>

Hi,

You should be able to do this in your conditional breakpoint. It’s not pretty, but it should work:

```
wcscmp((wchar_t*)MyString.Data.AllocatorInstance.Data,L"MyText") == 0

```

Hope this helps,

Steve

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-compare-a-fstring-in-c-condition-breakpoints/358380)._
