# How Can subtract the value of any key in a map

**URL:** <https://forums.unrealengine.com/t/how-can-subtract-the-value-of-any-key-in-a-map/605762>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [July 15, 2022, 5:55pm UTC](https://forums.unrealengine.com/t/how-can-subtract-the-value-of-any-key-in-a-map/605762 "2022-07-15T17:55:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LAHOOUITERS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LAHOOUITERS](https://forums.unrealengine.com/u/LAHOOUITERS)\
**Post date:** [July 15, 2022, 5:55pm UTC](https://forums.unrealengine.com/t/how-can-subtract-the-value-of-any-key-in-a-map/605762/1 "2022-07-15T17:55:37Z")

</div>

I Have A Map And I wanted To subtract ( -1 ) From Any Key Value.  
Please Help ❤❤❤ !!!

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/6/4367388de0cfb46e4652212de23ce02d73d7b179.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 15, 2022, 6:03pm UTC](https://forums.unrealengine.com/t/how-can-subtract-the-value-of-any-key-in-a-map/605762/2 "2022-07-15T18:03:16Z")

</div>

Like this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/7/1d7e7e7fb1eead827aa4e085778e83252e3170c1.png)

But, as you can see, not a good idea with maps. You’d probably be better off with two int arrays.

---

<div class="post-metadata">

**Author:** ![LAHOOUITERS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LAHOOUITERS](https://forums.unrealengine.com/u/LAHOOUITERS)\
**Post date:** [July 15, 2022, 7:25pm UTC](https://forums.unrealengine.com/t/how-can-subtract-the-value-of-any-key-in-a-map/605762/3 "2022-07-15T19:25:50Z")

</div>

Thanks !!!
