Tinderbox v11 Icon

list.empty()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Property  [other Property type actions]

 Item  [operators of similar scope]

 Non-query Boolean  [other Non-query Boolean operators]

 boolean test

 v5.7.0

 Baseline

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


list.empty()

list.empty

This returns a Boolean depending on whether the List- or Set-type list is empty. If empty, the return value is true, if the attribute has content then false is returned.

$MyList = [hello;world]; $MyBoolean = $MyList.empty; 

$MyBoolean is set to false as content is found. But

$MyList = []; $MyBoolean = $MyList.empty; 

$MyBoolean is set to true as no content is found.