{#await thePromise then { result }} {#if result}

result: {result}

count: {count}

{:else}

result: {result}

count: {count}

{/if} {/await}