Remove

Removes a key-value pair from a Map.

Windows
MacOS
Linux

Map_RemoveNode.png

The Remove node removes a key-value pair from a Map, thereby decreasing the length of the Map. When removing a key-value pair from a Map, the node checks whether the key is in the Map. If the key isn't in the Map, the key-value pair won't be removed.

Inputs

Pin Location

Name

Description

Map_RemoveNode_1.png

(In) Exec

Input execution pin.

Map_RemoveNode_2.png

Target Map

The Map that you want to remove the key-value pair from.

Map_RemoveNode_3.png

Key

The key being used to lookup a value in the Map.

Before a key-value pair can be removed, the key must be contained in the Map.

Outputs

Pin Location

Name

Description

Map_RemoveNode_4.png

(Out) Exec

Output execution pin.

Map_RemoveNode_5.png

Boolean Return Value

If the key-value pair was removed, the node returns true. Otherwise, if there are no values in the Map using the provided key, the node returns false.

Example Usage

Map_RemoveUsage.png

Tags
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss