How can I define a default value for TextBox if empty?

Screenshot_2019-05-09%20Kodular%20Creator
If textbox is empty, the program will run into error. How can I set a default value, e.g. “0” for empty textboxes?

Either set the value to 0 at screen start, or set it in the designer text options.

In that way the user will have to delete that number manually, is there any way to set the value without interfering the UI?

Sure Use an if statement.

If the text is blank then the math is + 0

I think that there is a very simple way to do that.
You can try this >>

4 Likes

Thanks a ton!

Your welcome.

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