Thanks Evan,

I'll test it later on and will report back

Fingers crossed for the architects having a heart for this

Am Samstag, 30. Dezember 2017 08:08:49 UTC+1 schrieb Evan Balster:
>
> Hey, Simon —
>
> with your additions you're addressing lots of problems I'm facing right 
>> now.  Thanks for your efforts and contributions!
>
>  
> I'm solving similar problems.  :)  Happy to share.
>
> I'd very much like to see this in the core, is there a chance?
>>
>
> That comes down to how TiddlyWiki's architects feel about it.  Previous 
> discussions about $if widgets like the one here concluded that they would 
> likely be redundant with $reveal.  For my part, though, I see $if playing a 
> fairly different role:  Lightweight, value-oriented and $list-like as 
> compared to the feature-rich, state-oriented $reveal widget...  The $else 
> widget is something else entirely, with its unusual sibling-based behavior.
>
> Anyway, I'll be interested to see how this flies with Jeremy and the 
> others.  Keep an eye out for bugs.
>
> On Saturday, 30 December 2017 01:02:05 UTC-6, BurningTreeC wrote:
>>
>> Hello Evan,
>>
>> This is *great*,
>> with your additions you're addressing lots of problems I'm facing right 
>> now
>>
>> Thanks for your efforts and contributions!
>>
>> I'd very much like to see this in the core, is there a chance?
>>
>> kind regards,
>> Simon
>>
>> Am Samstag, 30. Dezember 2017 06:54:54 UTC+1 schrieb Evan Balster:
>>>
>>> Introducing the *condition* plugin.  (Version 0.1 attached, docs 
>>> included)
>>>
>>> It provides *$if*, *$else* and *$else-if* widgets that choose whether 
>>> to show or hide their contents based on simple text conditions.  It pairs 
>>> well with my formula plugin 
>>> <http://evanbalster.com/tiddlywiki/formulas.html> and its default 
>>> "truthy" conditions handle boolean values.
>>>
>>> As compared with the closely-related *$reveal* widget, conditions are 
>>> simpler, behave more like *$list*, and can be executed as a chain.  
>>> They don't retain contents or animate, and can be based on variables, 
>>> filtered or transcluded attributes rather than just state tiddlers.
>>>
>>> The *$else* and *$else-if* widgets have some special uses, depending on 
>>> what they're placed after...
>>>
>>>    - After a* $list* widget, it will display when the list is empty.
>>>    - After a *$reveal* widget, it will display when the former's 
>>>    contents are hidden.
>>>    - After an *$if* or *$else-if*, it will display only when earlier 
>>>    conditions were all false.
>>>
>>> This was a quick evening project, so it could have bugs.  Please test 
>>> and remark here if you find any issues.  Future versions will probably live 
>>> in the Formulas project.
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/4c1f0fbe-7e47-4f6d-972d-8b8724072615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to