{#each { length: max } as _, i} {#if interactive} {:else} {#if isFull(value, i)} {:else if isHalf(value, i)} {:else} {/if} {/if} {/each}