How to define ANY NUMBER in code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Eidam

I need help: How I define any number in code?
For example:

if var a == (any number):
   do something


:bust_in_silhouette: Reply From: A112Studio

Here’s your answer

thank for answer, but I don´t understand to answer. You answer does not help with my problem…I wrote question wrong, hereI give more detailed question
I need something as this:


Or with var

var a = some_number

get_node(str("Node2D/Button", a)).something

Eidam | 2020-05-10 17:35

Try using “Node2D/Button”+str(number)

A112Studio | 2020-05-10 18:06