Hello Sorex,I think I need a new function i.e. ALMOSTEQUAL, since nothing happens whentrying all different test criteria >, <, <>, =. The asp-code is evaluated into the same damn html-code every time. ex. when the actual folder has 3 pictures1st (pic_1.asp) > 3=p_pics and 1=n_next_pic2nd next (pic_1.asp) > 3=p_pics and 2=n_next_pic3rd next (pic_1.asp) > 3=p_pics and 3=n_next_pic4th next (pic_1.asp) > 3=p_pics and 4=n_next_pic5th next (pic_1.asp) > 3=p_pics and 5=n_next_picand so on.......Take a look here: http://www.perlainvest.com/pics/properties...fset=10&Id=an65