Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-04 Thread Mohammad
Hi S.S, This is great! You can visually and interactively play with $set and see the result! Thank you On Friday, April 5, 2019 at 4:50:39 AM UTC+4:30, S. S. wrote: > > > The set widget is very useful for choosing between multiple options. > Understanding the logic of what combinations of the $s

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-04 Thread TonyM
S S I often use a variation of this when making my own macros to allow it to use current tiddler or another if provided. Basically it provides a default of the current tiddler \define mymacro(tiddlername) <$set name=selected-tiddler value="$tiddlername$" emptyValue=<< currentTiddler>> > Action:

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-04 Thread S. S.
The set widget is very useful for choosing between multiple options. Understanding the logic of what combinations of the $set widget's attributes produce the desired outcome is essential to using it for such a requirement. The discussion above was quite a revelation. Here's a possible use. If

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-01 Thread Jeremy Ruston
Hi SS That’s great, thank you. > Testting shows: If there is a value attribute & no emptyValue attribute, the > value is returned irrespective of the filter's result. I can confirm that behaviour, and I think it’s a bug. But… I’m not 100% sure that we should fix it; it might be better just to

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-01 Thread Mohammad
Many thanks s.s, It is good to put the link to documentation wiki here! --Mohammad On Monday, April 1, 2019 at 5:06:18 PM UTC+4:30, S. S. wrote: > > > I have copied and pasted from Eric's post - and added in some from > Jeremy's post, and a few of my own observations. > I am sure this is still n

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-04-01 Thread S. S.
I have copied and pasted from Eric's post - and added in some from Jeremy's post, and a few of my own observations. I am sure this is still not perfect. I hope this formats properly. Google Group's functionality and reliability, and this posting editor must be one of the weakest links in their

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-03-31 Thread Mohammad
Hi Eric, Excellent as always! Best Mohammad On Sunday, March 31, 2019 at 9:47:42 PM UTC+4:30, Eric Shulman wrote: > > On Sunday, March 31, 2019 at 7:46:22 AM UTC-7, Jeremy Ruston wrote: >> >> Perhaps it would be clearer expressed as a series of examples... >> > > Here's my take on examples plus

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-03-31 Thread Eric Shulman
On Sunday, March 31, 2019 at 7:46:22 AM UTC-7, Jeremy Ruston wrote: > > Perhaps it would be clearer expressed as a series of examples... > Here's my take on examples plus a little bit of re-arranging and editing of Jeremy's descriptions... > 1. If the "tiddler" attribute is present, get the te

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-03-31 Thread Mohammad
Added to TW-Scripts On Sunday, March 31, 2019 at 7:16:22 PM UTC+4:30, Jeremy Ruston wrote: > > Hi SS > > The logic used by the set widget to determine the result assigned to the > variable is as follows: > > 1. If the "tiddler" attribute is present and not blank, then: > 1a. If the "subtiddler" a

Re: [tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-03-31 Thread Jeremy Ruston
Hi SS The logic used by the set widget to determine the result assigned to the variable is as follows: 1. If the "tiddler" attribute is present and not blank, then: 1a. If the "subtiddler" attribute is also present and not blank, then get the subtiddler from the specified tiddler, otherwise jus

[tw5] How to use the $set widget properly with a "not missing" and "empty" filter?

2019-03-30 Thread S. S.
Within a macro, I am trying to determine if a parameter is empty, and then set a variable based on knowing that it is empty. I came across the Google Group post from a last month: Check the Blank Macro parameter \