I have - [set num][sql-increment][/set] and sgi variable 'start'. I do - [if explicit][condition] $SGI->start > 5; [/condition] <a href.....> previous </a> [/if] [if scratch num = 10] <a href.....> next </a> [/if] But it doesn't work. What I've done wrong? Thank's, my best regards, ----------------------------- Grigoriy G. Vovk