Surya,

pseudo-code is documented here https://en.wikipedia.org/wiki/Pseudocode

Pseudo-code is a way or arranging your thoughts about what you want rather 
than how you get it, Your original question is a real mix of the two, and 
anyone wanting to help has to first work out what you want before they can 
suggest how to do it. In fact by stating clearly what you want will often 
give you the answer before you ask anyone.

I spent a little time analysing your post, the working is below, but I 
manged to determine you were asking

We could say you want either

for each tested recipe
  Find all ingredients that are fruits

OR

for each fruit
  See if they are in a tested recipe

So we can now make this a little more tiddlywiki like, lets go with the 
second, that sounds most like your request

For each tiddler tagged with fruit
  See if that tiddler (fruit) tags at least one (recipe) tiddler

So if you asked your self how to do this you may already know the answer, 
but if you asked the community your question would be easier to read and 
answer.

Perhaps your second question should be stated in pseudo-code

"now to list also ingredient-tiddlers, which are either fruit OR fat AND 
are in recipes tagged with "tested"

Regards
Tony




Here is my working notes
Recipies (tiddlers) are Tested/untested
Ingredients have categories (eg fruit)
How are ingredients associated with Recipes? I will assume they are tagged 
with the ingredients (but what about quantities of those ingredients in a 
recipe?)


example content
A tested recipie tagged with an ingredient A
An un-tested recipie tagged with an ingredient B


Desert is tested and has an apple ingrediaent
Drink is untested and has an orange ingredient


List: all ingredients tagged with fruit. But only these fruits, that are in 
recipes tagged with "tested".


We could say we want either


for each tested recipie
  Find all ingrediants that are fruits


OR


for each fruit
  See if they are in a tested recipe



On Monday, 27 August 2018 11:02:01 UTC+10, Surya wrote:
>
> Hi,
>
> Tony, sorry, I do not understand, what you mean. What do you mean with 
> pseudo-code and what do you mean with plan english? And what with the rest?
> Of course I want to describe my questions in a way that other people 
> understand. But what is your suggestion for me to make that better?
> (I am always working a lot with my several wikis. But just hadn't 
> important questions. That's why I haven't been here. Unfortunately I don't 
> think, I could answer other people questions. When I read questions of 
> people called themselves as beginners, I could never help even them... I am 
> sorry for that).
>
> @Mark & all:
> I thought, that I should be able now to edit this filter now to list also 
> ingredient-tiddlers, which are either fruit OR fat AND are in recipes 
> tagged with "tested".
> But, oh my god... I am not... Tried several ways for this OR-function. But 
> no one worked...
>
> So please again, I ask for your help.
>
> The recipe-tiddlers are tagged with either "tested" or "untested".
> And the ingredients are tagged with categories- for example "butter" and 
> "oil" are tagged with "fat". And "apple" and "orange" are tagged with 
> "fruit".
>
> Let's say I have now a recipe called "dessert", that is tagged with 
> "tested" and tagged with "apple" and "butter".
> And I have a recipe called "drink", that is tagged with "untested" and 
> tagged with "orange" and "oil".
>
> Now i want to make a list-filter, where I can see for example all 
> ingredients tagged with "fruit" OR tagged with "fat". But only these fruits 
> and fats, that are in recipes tagged with "tested".
>
> So in this example it should show only the ingredients "apple" and 
> "butter". Because they are fruit / fat and are in a tested recipe.
>
>
> How to write the filter
> <$list filter="[tag[tested]tags[]tag[
> fruit]]">
>
> </$list>
> so that it finds fruits AND fats, but only of tested recipes?
>
> Surya
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d42ad16-fc34-414d-936c-506828005637%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to