Re: comparing multiple list lengths
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: comparing multiple list lengths

From: Alan Anderson <aranders@insightbb.com>
Date: Sun Dec 18 2005 - 19:12:07 CET

"Niv (KP)" <kev.parsons@mbda.co.uk> wrote:

> Thta's what I wanted, thanks.
> I was grouping each of the required list compares inside curly
> brackets,
> and ORing these..............
>
> if {ll1 != ll2} ||{ll1 != ll3} .........etc
>
> A bit confused over my bracket groups, simple really!
>
> Thanks again, Kev P.

It's possible that you're still confused over "bracket groups". For one
thing, I think you're actually referring to braces {}, not brackets [].

The important point to understand is that braces just turn a sequence of
characters (which might include whitespace -- spaces, tabs, newlines,
etc.) into a single word, from the viewpoint of the parser. The only
braces you should be using in your fragment of code are the ones
separately surrounding the condition and the action of the if command.

  if {condition} {action}

Braces are a lot like double quotes, except that they prevent the parser
from applying variable substitution before the word is used.
Received on Fri Dec 23 19:01:59 2005