You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✔️ d.custom.set_if_z is a companion to d.custom.if_z and sets an attribute only once, if it was missing or empty previously.
✔️ d.custom.erase to remove a custom key.
✔️ d.custom.toggle inverts the truthiness of a custom attribute using 0 and 1 (empty strings and 0 become 1, and other strings become 0). It also returns the current value that was set (as in the value type, i.e. as an integer)
✔️ d.custom.as_value returns a custom attribute as a value (integer); missing keys and empty strings are 0, and other non-numbers raise an exception. Major use-cases of this are custom timestamp fields, and querying toggles.
d.custom.set_if_zis a companion tod.custom.if_zand sets an attribute only once, if it was missing or empty previously.d.custom.eraseto remove a custom key.d.custom.toggleinverts the truthiness of a custom attribute using0and1(empty strings and0become1, and other strings become0). It also returns the current value that was set (as in the value type, i.e. as an integer)d.custom.as_valuereturns a custom attribute as a value (integer); missing keys and empty strings are0, and other non-numbers raise an exception. Major use-cases of this are custom timestamp fields, and querying toggles.