# \[need help\] Compare Wildcards

**URL:** <https://forums.unrealengine.com/t/need-help-compare-wildcards/74736>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 28, 2016, 1:58pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736 "2016-09-28T13:58:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [September 28, 2016, 1:58pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/1 "2016-09-28T13:58:35Z")

</div>

Hi there,

I tried to create a simple Macro, that Inputs a Wildcard Variable, and a CompareTo Wildcard variable.

Now i want to Compare those two Wildcards, if they are Equal, but can´t find a Node to check for that…

So…:  
How can i compare two Wildcards?

For visual help what i want:  
 ![plc67g8z.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/9/a942304f5ec6f46feb7b41e59ab2041548aaf6bc.jpeg)

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [September 30, 2016, 8:12pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/2 "2016-09-30T20:12:18Z")

</div>

has anyone an answer?

---

<div class="post-metadata">

**Author:** ![Kilrogg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kilrogg](https://forums.unrealengine.com/u/Kilrogg)\
**Post date:** [September 30, 2016, 9:05pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/3 "2016-09-30T21:05:59Z")

</div>

You can’t, because you don’t know what each of the two types will be. It’s the same thing as trying to compare a boolean with a vector, they can’t be compared because it’s not logical.

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [October 1, 2016, 4:45am UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/4 "2016-10-01T04:45:06Z")

</div>

Okay…  
But… Instead, is there a way to check if the Inout Type is an object, float, int, bool…etc?

so i can split up 😕

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_84e009961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_84e009961](https://forums.unrealengine.com/u/anonymous_user_84e009961)\
**Post date:** [October 1, 2016, 5:36am UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/5 "2016-10-01T05:36:23Z")

</div>

Is this problem for convenience or a design problem that could be achieved in a different way?

---

<div class="post-metadata">

**Author:** ![Raildex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raildex](https://forums.unrealengine.com/u/Raildex)\
**Post date:** [October 1, 2016, 5:45am UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/6 "2016-10-01T05:45:53Z")

</div>

The wildcard is a generic type. If you input an object, every wildcard will be an object at runtime(or even at compiletime).  
Therefore you would be checking “if Object is an Object”. This doesn’t make sense.  
For custom types, you can use interfaces.  
For primitve types like int, vector,etc. and object types you should implement a macro for every type.

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [October 1, 2016, 9:27am UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/7 "2016-10-01T09:27:20Z")

</div>

The idea was:

if i input two objects to my wildcards, or two ints, or floats, or vectors…etc

It would be nice to get a:  
IsWildcard.typeOf == Object  
IsWildcard.typeOf == Int32  
IsWildcard.typeOf == float  
… etc

And then go on with the specified input type to compare…

Cause… hell… One Macro of the same graph for EVERY Variable and Input Type? So… that would be 100+ Macros .\_.

---

<div class="post-metadata">

**Author:** ![Raildex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raildex](https://forums.unrealengine.com/u/Raildex)\
**Post date:** [October 1, 2016, 1:42pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/8 "2016-10-01T13:42:33Z")

</div>

Why don’t you use the already implemented equals operator for basic types?  
What exactly is your use case for this macro?

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [October 1, 2016, 5:19pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/9 "2016-10-01T17:19:45Z")

</div>

I want a TUNNEL, that Input Types, and Outputs them only:  
A) when the Exec is called  
B) if they are NOT equal

The basic equal operators can´t be started via exec or any others…

As second, i don´t want to have hundrets of nodes in my Graph, when i can use macros for that…

For better understanding…:

THIS, should be the tunnel macro:  
 ![09ba16be518fb7f1c910485a6d4aefb54619c489.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)  
The Macro should compare the two Inputs (Object, Int, float, Vector, bool are possible), and Output One of them, based on the branch result.

BUT…  
Cause the “equal” node is fixed to a single variable type only… it gives warnings/errors when trying to compile it, when twei Ints are attached… or two vectors…  
The Warning is:  
“Int/Vector/Float/Bool… is not compatible with Object reference”.

So, why i don´t use the “equal” nodes in my event graph? cause of this:  
 ![9dd5e754746d84c7d5c8dd1ff6359830b0db32cf.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Hurray - When using Input\>equal\>branch\>outbut on every of this Variables… The Graph Tree would have a few hundret nodes, just for comparing the values… That´s why i want to have a Macro, that Inputs tweo wildcards, COMPARES THE WILDCARDS, and Outputs the result (as shown on screen 1).

---

<div class="post-metadata">

**Author:** ![navid100](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@navid100](https://forums.unrealengine.com/u/navid100)\
**Post date:** [May 31, 2017, 9:11am UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/10 "2017-05-31T09:11:55Z")

</div>

Yes you can. I found a solution to this.

[https://answers.unrealengine.com/questions/482017/how-to-compare-two-wildcards-in-blueprints.html#answer-606250](https://answers.unrealengine.com/questions/482017/how-to-compare-two-wildcards-in-blueprints.html#answer-606250)

Regards.

---

<div class="post-metadata">

**Author:** ![Salunst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Salunst](https://forums.unrealengine.com/u/Salunst)\
**Post date:** [August 8, 2025, 4:00pm UTC](https://forums.unrealengine.com/t/need-help-compare-wildcards/74736/11 "2025-08-08T16:00:05Z")

</div>

Sorry for necroing, but the link doesn’t work ☹

EDIT: I think I found a workaround: Making one of the values an array and then checking if the other value is contained. Not optimal, because of the array-creation-overhead, but it seems to be the only solution.

Found here: [Compare Items (Struct Equal Alternative) posted by EMPOK | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/qujzmxsl/)
