Use the output of a string as a variable.

It is possible to use use the output of a string as a variable?

I want to take advantage of the output on a trace event, the one here to be exact.
https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html

So for example, If i am looking at an object and the sting is returning “box” I want to be able to “cast to” to grab that sting and use it in a branch condition.

I hope you can understand what i am looking to do, I am very new at this.

Edit: Basically what i am trying to do is check if im looking at the object

Do you mean something like Switch on String?

You can also compare a string with the == and branch on the resulting bool

After some thinking i figured it out. all i did was make a “name” variable and made the trace set it. then in my branch i called to that “name” and checked it is “=” what i wanted it to.

In case you didn’t know:

Name = 8 bytes, not case sensitive, no localization.
Text = 40 bytes, case sensitive, supports localization.
String = 16 bytes, case sensitive, no localization.