|
Python None ObjectChameleon can utilize the Python None object to represent an empty value variable of any type.
Therefore, the following type-independent if condition may be used to handle empty values:
It is also possible to set the value variable to the Python None object so that Chameleon will flag the field/column as being empty:
In previous versions of Chameleon, there was no special handling of empty values, which meant that empty string values were represented by empty strings "", while empty integers, doubles, and date times were all represented by 0. If your existing Python code assumes that these values are used to represent empty, you can place the following code at the beginning of each script that utilizes the value variable:
|