Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
LASSIGN - Extended TCL
Synopsis * Description

Assign successive elements of a list to specified variables

Synopsis

  • lassign list var ?var...?

Description

Assign successive elements of a list to specified variables. If there are more variable names than fields, the remaining variables are set to the empty string. If there are more elements than variables, a list of the unassigned elements is returned.

For example,

lassign {dave 100 200 {Dave Foo}} name uid gid longName

Assigns name to "dave", uid to "100", gid to "200", and longName to "Dave Foo".

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved