Accessing the length of an observable in an expression

Is there a way of accessing the length of an observable so I can do things like conditionals based on how many items are in a list?Something similar to:

<WhileFloat Value="{list.length}" GreaterThan="0">
	<Heading />
	<Each Items="{list}">
		<Item thing="{value}" />
	</Each>
</WhileFloat>

Perhaps an inline expression for doing this? I can’t seem to find the docs on what inline expressions are available.

Currently I’m having to create separate observables that monitor and reflect the length of every list in use, which is a pain.

Alternatively, a WhileArray tag could be added:

<WhileArray Value="{list}" MinLength="1">
	<Heading />
	<Each Items="{list}">
		<Item thing="{value}" />
	</Each>
</WhileArray>

Although direct access to the length within an expression would probably be more generally useful.

Hopefully I’m missing something and there’s an easy way? Or there’s a quicker trick for doing this?

Cheers guys (and happy Constitution Day to the devs!)

Hi luke,

for that you have WhileCount and WhileEmpty.

Ahh, cheers Uldis!