Pubnix
Register
Users

Online users

{#if !data.users.error} {#if onlineUserCount == 1}

There is {onlineUserCount} user online out of {userCount} users.

{#each data.users.users as user} {#if user.online} {/if} {/each}
{:else if onlineUserCount > 1}

There are {onlineUserCount} users online out of {userCount} users.

{#each data.users.users as user} {#if user.online} {/if} {/each}
{:else}

No users online out of {userCount} users.

{/if} {:else}

{data.users.message}

{/if}