Quick question, if a textbox has no text what will it return?

Just need to know an answer to a quick question, thanks!

What text bot are you talking about?

Oops, I mean’t textbox, sorry.

I think it will just return the string “”.

2 Likes

Alright, thank you!


If Text has nothing inside of it, then its just nil meaning no value.

No, I did a test in roblox studio
image
The TextBox is empty.

3 Likes

I remember, one my script checks if the textbox’s value is “” and it works just fine.

This is known as an Empty string, Since it contains nothing inside, its has no value, in other words nil

But he is asking what the exact value of an empty text box is, so he could check if it’s empty or not.

2 Likes

This is known as an Empty string. Since it contains nothing inside, it has no value. In other words empty string.

image

1 Like

oof, i confused it will null string

Empty String is a string with a length of 0
Null String is a string with no value

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.