Ok, I think this is what your want:

<$list filter="[all[current]fields[]prefix[mi_]]" variable="field">
<$list filter="[all[current]get<field>!match[No]]" variable=value>
<<field>>: <<value>><br/>
</$list></$list>

So it reports fields and value where the field name matches mi_ and the 
contents don't match "No".

On Monday, April 20, 2020 at 9:08:29 PM UTC-7, Mark S. wrote:
>
> I don't quite understand your question. If you only want fields that match 
> value "Yes", then
> what is the point of retrieving the value -- it will always be "yes"?? 
> Here's code that does
> what you literally asked for:
>
> <$list filter="[all[current]fields[]prefix[mi_]]" variable="field">
> <$list filter="[all[current]get<field>match[Yes]]" variable=dummy>
> <<field>>: Yes
> </$list></$list>
>
> It finds the fields starting with mi_ and reports them only if they 
> contain "Yes". As you may note,
> I just hardcoded "Yes", since the inner list guarantees that "Yes" is all 
> the field will have.
>
>
>
> On Monday, April 20, 2020 at 8:25:51 PM UTC-7, David wrote:
>>
>>
>>
>> On Monday, April 20, 2020 at 5:53:03 PM UTC-4, Mat wrote:
>>>
>>> <$list filter="[all[current]!mi_chalupa[No]]">
>>> {{!!mi_chalupa}}<br />
>>> </$list>
>>>
>>> The short form for accessing any field is {{!!fieldname}} or, if in 
>>> another tiddler or context, {{tiddlername!!fieldname}}
>>>
>>> <:-)
>>>
>>
>> Thank you so much, but as I mentioned in the comment for that section, 
>> that is not dynamic.  I have the field name in a variable "x" and this is 
>> what I thought, and I tried other forms of accessing the var, but it 
>> doesn't work...
>>
>> <!-- This is dynamic, but shows all fields, even ones marked "No".  I 
>> want only "Yes" -->
>> <$list filter="[all[current]fields[]prefix[mi_]]" variable="x"> 
>> {{!!<x>}}<br />
>> </$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/677843be-7fa1-4aad-aefc-97eb801d9a72%40googlegroups.com.

Reply via email to