Yes, This is shorter and even better!
list widget can do amazing things! while reveal may be semantic in this
case!
--Mohammad
On Thursday, March 14, 2019 at 10:10:01 PM UTC+3:30, BurningTreeC wrote:
>
> A smart solution!
>>
>> Much shorter and semantic!
>>
>
> It still can be shortified:
>
>
That's true! In my case I use wikify widget when I have to use the result
of a macro or want to store a variable.
I also use some general purpose macros and do not want to repeat the
scripting!
--Mohammad
On Thursday, March 14, 2019 at 10:03:51 PM UTC+3:30, BurningTreeC wrote:
>
> A smart
>
> A smart solution!
>
> Much shorter and semantic!
>
It still can be shortified:
<$set name="tidBMod" value={{{ [[Bb]get[modified]] }}}>
<$set name="tidAMod" value={{{ [[Aa]get[modified]] }}}>
<$list filter="[] [] +[nsort[]last[1]removesuffix
]">
Yes, Aa is newer
<$list filter="[] []
>
> A smart solution!
>
> Much shorter and semantic!
>
> Thanks alot!
>
> Added to TW-Scripts
>
>>
>>
What I want to say is that I think the wikify widget should never be the
widget of choice if it can be done without
When I use it I try questioning if there's a reason why, if I know that it
A smart solution!
Much shorter and semantic!
Thanks alot!
Added to TW-Scripts
--Mohammad
On Thursday, March 14, 2019 at 9:51:48 PM UTC+3:30, BurningTreeC wrote:
>
> @Mohammad,
>
> using the wikify widget for this usecase seems to be useless, this can
> easily done without:
>
> <$set
>
> BTC,
> Thank you, now it works and reveal widget shows the correct output!
> It is difficult to debug the TW scripts! Seem only experiences help here!
>
I must say you're also making it difficult by using the wikify widget
>
> A million thanks
>
> Cheers
> Mohammad
>
>>
>>
--
You
@Mohammad,
using the wikify widget for this usecase seems to be useless, this can
easily done without:
<$set name="tidBMod" value={{{ [[Bb]get[modified]] }}}>
<$set name="tidAMod" value={{{ [[Aa]get[modified]] }}}>
<$reveal type="match" text="yes" default={{{ [] []
Added to TW-Scripts.
Best wishes
Mohammad
On Thu, Mar 14, 2019 at 9:32 PM BurningTreeC
wrote:
> Yes, *result *has a value: *yes*
>>
>> Seems I cannot get any output from reveal widget!
>>
>> I pasted the whole code here to be able to check in tiddlywiki.com!
>>
>>
>> \define gt()
>> $(TidA)$
BTC,
Thank you, now it works and reveal widget shows the correct output!
It is difficult to debug the TW scripts! Seem only experiences help here!
A million thanks
Cheers
Mohammad
Best wishes
Mohammad
On Thu, Mar 14, 2019 at 9:32 PM BurningTreeC
wrote:
> Yes, *result *has a value: *yes*
>
> Yes, *result *has a value: *yes*
>
> Seems I cannot get any output from reveal widget!
>
> I pasted the whole code here to be able to check in tiddlywiki.com!
>
>
> \define gt()
> $(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]]
> \end
>
> \define is-it-newer(TiddlerA, TiddlerB)
> <$set
Yes, *result *has a value: *yes*
Seems I cannot get any output from reveal widget!
I pasted the whole code here to be able to check in tiddlywiki.com!
\define gt()
$(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]]
\end
\define is-it-newer(TiddlerA, TiddlerB)
<$set name=TidA
>
> Hi BTC,
> Thanks it works! but then if I further use the result I go into another
> trouble.
>
> No check this!
>
> <$wikify text="""<>""" name="result">
> <>
> <$reveal type="match" text="yes" default=<> >
> Yes, Aa is newer
>
> <$reveal type="match" text="no" default=<> >
> No, Aa is
Hi BTC,
Thanks it works! but then if I further use the result I go into another
trouble.
No check this!
<$wikify text="""<>""" name="result">
<>
<$reveal type="match" text="yes" default=<> >
Yes, Aa is newer
<$reveal type="match" text="no" default=<> >
No, Aa is older
No output!
>
> Create two tiddlers in tiddlywiki.com titled *Aa *and *Bb*
>
> Now create a tiddler with below code inside it. This code compares the
> modified date of two tiddlers and shows yes
> if Aa is newer than Bb and vice versa!
>
> \define gt()
> $(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]]
14 matches
Mail list logo