Thank you! I elaborated another method based on your code to very simply put this directly inside a switch as an expression, so that one can then use the boolean result to determine which way to go:
{{Object.keys($items()[0].json).length === 0}}
Thank you! I elaborated another method based on your code to very simply put this directly inside a switch as an expression, so that one can then use the boolean result to determine which way to go:
{{Object.keys($items()[0].json).length === 0}}