(SOLVED) Text global variable initialize empty value

start new project
add one global variable, named vartext and put “” to the init value
add one scene
add one object (text)
add one event, condition


launch a preview
get NO change to text …

PLEASE can you explain me why the condition in not true?

This is simple: it may be unintuitive (I always make that error too) but when setting the default value from the menu, it will automatically escape and put as text everything that contains anything that is not a number. Basically, by putting “” you put “” as text, and therefore the condition needs to be if value if text = “\”\"". The best for you is to just not define the variable in that case. By default a variable is = 0 if not explicitly defined.

1 Like

many thanks! for your fast and accurate response