Skip to main content
Skip table of contents

NullModel

Model for missing values (null)

implements: hash, method, sequence<NullModel>, scalar
bundle: standard information structure (sismodel)
since 5.2.0
Model for missing values (null)

Model for missing value (null); behaves like neutral element.

The NullModel is not behaving like null for the freemarker operations ! and ??.

  • Avoid using '!' operator
  • Replace '??' operator by '?has_content'

[used as sequence][Integer:any]NullModel
since 5.2.0
returns itself ignoring given index 'any'

[used as boolean] ↦ Boolean
since 5.2.0
returns false

[used as scalar] ↦ String
since 5.2.0
returns empty string

Defined hash keys

<String:any> ↦ NullModel
since 5.2.0
returns itself ignoring given key 'any'

Methods

[used as method](Object:any)NullModel
since 5.2.0
returns itself

Built-Ins

?has_contentfalse
since 5.2.0
returns false

[used as sequence]?sizeInteger
since 5.2.0
returns 0 (zero) always

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.