yes, perfect. is there a way i can change this to do, say 5 images, add a <br> then do the next 5? i must have all images in %nig before it is returned at the end of this alias.

Code:
alias -l new_img_gallery {
  var %nig = $chr(32)
  noop $findfile(scripts\pws\htdocs\gallery\,*.jpg;*.jpeg;*.jpe;*.png;*.gif;*.bmp,0,var %nig = %nig <a href=" $+ gallery/ $+ $nopath($1-) $+ "><img src=" $+ gallery/ $+ $nopath($1-) $+ " width="50" height="50"></a>)
  return %nig
}