{#if widget && node && nodeValue && $nodeValue} {#if widget.attrs.variant === "image"}
{#if $nodeValue && $nodeValue.length > 0} {@const value = $nodeValue[$nodeValue.length-1]} {@const url = comfyBoxImageToComfyURL(value)} {:else} {/if}
{:else} {@const images = $nodeValue.map(comfyBoxImageToComfyURL)} {/if} {/if}