Thank you, Mark! I didn't know about range!  

<$set name="end" value={{{[enlist:raw{!!select-color}count[]]}}}> 
<$list filter="[range<end>]" variable="index">
<$list filter="[enlist:raw{!!select-color}nth<index>]" variable="color">
<$list filter="[enlist:raw{!!price-select-color}nth<index>]" 
variable="price">
<<color>> - <<price>>
</$list></$list></$list>
</$set>

воскресенье, 6 декабря 2020 г. в 18:00:45 UTC+3, Mark S.: 

> Version where you don't have to specify range by hand
>
> \define color-price(end)
> <$list filter="[range[1,$end$]]" variable="index">
> <$list filter="[enlist:raw{!!select-color}nth<index>]" variable="color">
> <$list filter="[enlist:raw{!!price-select-color}nth<index>]" 
> variable="price">
> <<color>> - <<price>>
> </$list></$list></$list>
> \end
>
> <$list filter="[enlist:raw{!!select-color}count[]]" variable="end">
> <$macrocall $name="color-price" end=<<end>>/>
> </$list>
>
>
> On Sunday, December 6, 2020 at 6:50:18 AM UTC-8 Mark S. wrote:
>
>> Something like this, maybe:
>>
>> <$list filter="[range[1,4]]" variable="index">
>> <$list filter="[enlist:raw{!!select-color}nth<index>]" variable="color">
>> <$list filter="[enlist:raw{!!price-select-color}nth<index>]" 
>> variable="price">
>> <<color>> - <<price>>
>> </$list></$list></$list>
>>
>>
>>
>>
>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2f297e47-35d5-44e1-a083-8e90387fa6e6n%40googlegroups.com.

Reply via email to