First, and basic yet important.
Null Values:
Sometimes it is useful to evaluate against a null or empty value, like if checking an array member is empty or if a textbox is empty (so that maybe it can be filled with a default value).
Simply declare a Variable such as nullString in Variable List and do not assign it a value.
Evaluate against it such as;
- Code: Select all
if Textbox1.text = nullString
{
Textboxt.text = Default Value
}
else
{
...
}
To declare in script without value, of course:
VString,nullString,
So that's it. And if anyone knows of another way to reference a null value without explicitly declaring it, let me know!
Please feel welcome to add your own tips .