How to get a name with all signs?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort
	if Input.is_action_just_pressed('ui_x'):
		var test = $objects/test = '@test@42'

Print issues test42

:bust_in_silhouette: Reply From: jgodfrey

The @ is a special character used in node names to indicate to the engine that the node was instanced without an explicit name.

Apparently, the @ gets stripped from the string as it’s assigned to the name property. So, in your example, it’s not that the @ symbol isn’t printing. Instead, it was stripped during the assignment itself and isn’t stored as part of the name.

See the following for more info and context: