{#if cantpag>1} {#each array as num } {#if currentPag !== num} queryPag(num)}>{String(num)} {:else} queryPag(num)}>{String(num)} {/if} {/each} {/if}