Breaking/Continuing nested for loops in Coffeescript

break works just like js:

for cat in categories
  for job in jobs
    if condition
      do this
      break ## Iterate to the next cat in the first loop

Your second case is not very clear, but I assume you want this:

for cat in categories
    for job in jobs
      do this
      condition = job is 'something'
    do that unless condition

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)