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

Checking for 'not equals' in a Foreach...........

 [1/3] from: jfdutcher1958::yahoo::com at: 16-Jul-2004 10:03


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) ???

 [2/3] 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:
<<quoted lines omitted: 4>>
> ] > 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

 [3/3] from: antonr:lexicon at: 21-Jul-2004 2:26


Please give us a complete example, at least showing how you initialized and filled BLK. Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted