lempty

This command is part of the TclX package.

lempty list

Returns whether list is an empty list.

Equivalent to testing if the llength of the list is zero.

% package require Tclx
8.4
% lempty "1"
0
% lempty [list "1"]
0
% lempty [list]
1
% lempty [list ""]
0
% lempty [list "   "]
0
% lempty "   "
1
% lempty ""
1

  Pure Tcl Equivalent

AMG: proc lempty list {expr {![llength $list]}}