# How is it possible that this AND can ever result in true?

**URL:** <https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE4-27, Blueprint, question\
**Created:** [January 26, 2022, 3:44pm UTC](https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742 "2022-01-26T15:44:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinalSuperman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalSuperman](https://forums.unrealengine.com/u/FinalSuperman)\
**Post date:** [January 26, 2022, 3:44pm UTC](https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742/1 "2022-01-26T15:44:02Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/5/45fe41c64a2d843f4e6581a63c7faec67c282f6c.png)

I’m looking at examples of animation blueprints and am perplexed seeing this in a macro. Essentially the way this reads to me is as follows:

If IsAttacking and IsNotAttacking

I can’t imagine this ever being anything except false, however the animation blueprint works correctly and this is often fired as true. Any thoughts?

Thanks for reading.

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [January 26, 2022, 3:48pm UTC](https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742/2 "2022-01-26T15:48:40Z")

</div>

Object oriented programming.

All you see is same code, however code you see in editor is not actually what is processed in game.

You have (probably) two different actors of same class, they have same code, but they are different copies of that code in memory.

So one copy has Is\_Attack = True another copy has Is\_Attack = False.  
Ant then AND may be true.

---

<div class="post-metadata">

**Author:** ![FinalSuperman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalSuperman](https://forums.unrealengine.com/u/FinalSuperman)\
**Post date:** [January 26, 2022, 5:00pm UTC](https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742/3 "2022-01-26T17:00:36Z")

</div>

Appreciate the feedback, i’ll try to take another look at the blueprint from the perspective that these are in fact not the same object. Thank you.

---

<div class="post-metadata">

**Author:** ![FinalSuperman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalSuperman](https://forums.unrealengine.com/u/FinalSuperman)\
**Post date:** [January 26, 2022, 5:17pm UTC](https://forums.unrealengine.com/t/how-is-it-possible-that-this-and-can-ever-result-in-true/491742/4 "2022-01-26T17:17:44Z")

</div>

Thank you Nawrot you helped me find out what is going on. The variable “isAttack” at the top is a variable created by the AnimInstance, the other “isAttack” is a variable belonging to the referenced Character instance. Unfortunately they are named the same but indeed they belong to two separate entities and are not referring to the same variable.
