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.
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.
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:
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:
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).