Adding null
In this page you will see why you need to use null
sometimes and how to do it
Why Null Variables are Neededβ
Null variables are essential in handling properties of widgets like TextField
, especially for properties that behave differently with empty fields. For example:
errorText
inTextField
: Initially null, but if text is added and then removed,errorText
becomes an empty string instead of null. This keeps the error line visible. To disable the error line, seterrorText
back to null.
How to Add Null Variablesβ
In Details Panelβ
- Right-Click on Property Field: Find the field you want to set to null.
- Select 'Set to Null': Right-click and choose 'Set to Null' from the menu.
In Circuitβ
- Use a Node with Value Input: To set a null, the node should accept a `value`` input.
- Add Null Variable: Click the '+' next to the value input, select 'Null' under 'General', or search for 'null'.
info
null
option won't appear except when clicking on '+' next to inputs that accept null