# Can anyone help me? This variable check isn't working

**URL:** <https://forum.makecode.com/t/can-anyone-help-me-this-variable-check-isnt-working/37172>\
**Category:** Help\
**Created:** [June 7, 2025, 6:59pm UTC](https://forum.makecode.com/t/can-anyone-help-me-this-variable-check-isnt-working/37172 "2025-06-07T18:59:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moco](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Moco](https://forum.makecode.com/u/Moco)\
**Post date:** [June 7, 2025, 6:59pm UTC](https://forum.makecode.com/t/can-anyone-help-me-this-variable-check-isnt-working/37172/1 "2025-06-07T18:59:03Z")

</div>

Hellooo, I am trying to make a multiplayer online boss fight game with character selection, however I’m having problems with a function that in certain part checks if you’re the green character, and if you are, it gives you 200 maximum hp instead of 100 hp like it gives everyone else, however it is giving everyone that HP.  
Link:

> **[BossFight](https://arcade.makecode.com/S31617-05572-38420-68268)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Moco](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Moco](https://forum.makecode.com/u/Moco)\
**Post date:** [June 9, 2025, 4:32pm UTC](https://forum.makecode.com/t/can-anyone-help-me-this-variable-check-isnt-working/37172/2 "2025-06-09T16:32:12Z")

</div>

Guys I solved it, you cant check for images using logic =, you have to use the ‘‘picture is equal to ’’ in images section

---

<div class="post-metadata">

**Author:** ![Stickman4269](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/stickman4269/32/23582_2.png) [@Stickman4269](https://forum.makecode.com/u/Stickman4269)\
**Post date:** [June 9, 2025, 4:35pm UTC](https://forum.makecode.com/t/can-anyone-help-me-this-variable-check-isnt-working/37172/3 "2025-06-09T16:35:01Z")

</div>

![IMG_0464](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/c/7c1e8e7d6350c60a6a4b51a28739afdd81892337.jpeg)  
Use “is equal to image” instead of a regular “=“ for images. idk why but using a regular “=“ doesn’t work. same with tilemap locations.
