Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Checking for 'not equals' in a Foreach...........

From: didec:tiscali at: 16-Jul-2004 20:16

A block ('blk') has been 'appended' to six times with the textual 'length' value of six input boxes and
> looks like this: [222100] > > A 'foreach' loop looks like this: > > foreach lgth blk [ > if lgth <> 2 [ > alert "All input boxes need to be filled !" > ] > ] > > The alert pops up for every iteration (six times) ??? >
Values need to be separated by spaces : [2 2 2 1 0 0 ] But if you have six times the alert, I wonder how you have filled blk !! DideC