as always ... just magic !
Thanks a lot !
Vpl
Le samedi 16 octobre 2021 à 20:19:35 UTC+2, Mark S. a écrit :
> I don't believe that you can increment a variable that way. You might be
> able to using some sort of recursive function.
>
> But if you're using 5.2.0, you now have the *counter* attribute, so don't
> need those extra steps:
>
> <$vars projs_list="A B C">
> <$list filter="[enlist<projs_list>]" variable ="proj_name_val"
> counter="vals_rep" >
> <li> <<proj_name_val>> <$checkbox tiddler="projs_selection"
> index=<<vals_rep>> checked=<<proj_name_val>>> </$checkbox></li>
> </$list>
> </$vars>
>
>
> On Saturday, October 16, 2021 at 11:03:11 AM UTC-7 vpl wrote:
>
>> Hi,
>>
>> I'm blocking on how to increment a counter into a list
>> I have the following code which display a list of checkbox
>>
>> I need to set the index in the DataTiddler but in the below example the
>> <<vals_rep>> remains to ..
>> Anyone who has an idea why it's not working ?
>>
>> Thanks for your help
>> Regards
>>
>> <$list filter="[enlist<projs_list>]" variable ="proj_name_val">
>> <$vars vals_rep ={{{ [<vals_rep >add[1]] }}}>
>> <<vals_rep>>
>> <li> <<proj_name_val>> <$checkbox tiddler="projs_selection"
>> index=<<vals_rep>> checked=<<proj_name_val>>> </$checkbox></li>
>>
>>
--
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/5f882539-d823-41cd-932c-7b05ee55c182n%40googlegroups.com.