6. Blank, empty, False and zero
Sometimes a question has not been answered yet. A clue-selection variable is a good example: the player has not picked a clue, so there is no selected ID to store. Leave Blank At Start represents that state with null.
1. Add last_choice, Name Last Choice, and choose String.
2. Tick Leave Blank At Start. The initial String field disappears.
3. Apply and save. The record still has type String, but its starting value is null.
Figure 6. Last Choice starts blank. The declared type stays String while the starting value is null.
| Value | Meaning in your design |
|---|---|
| False | A Boolean answer: no, this has not happened. |
| 0 | A Number: none of this amount. |
| "" | An empty String: text exists, but contains no characters. |
| [] | An empty Array: a list with no members. |
| null | No value has been supplied yet. |
Untick Leave Blank At Start and leave Initial String Value empty if you want an empty String instead. Do not use the word null in the String starting field to mean blank; that stores four letters.
During play, visual Set Variable nodes have a Blank / null option, and GDScript can supply null directly. In this release, typing null into an ordinary action-list Value text field does not reliably create null. Use the explicit blank option or code for that case.
