I'm in a TiddlyWiki programming mood today.

You already have a beautifully concise solution, so I'm just sharing this, 
solution to a somewhat different problem, for the coding fun of it:

<$vars Tiddler1={{Sample Tiddler A!!title}}
       OtherTiddlers="Sample Tiddler Z;Sample Tiddler B;Sample Tiddler D" >
<table>
<$list variable="TiddlerX" filter="[<OtherTiddlers>split[;]sort[]]">
<tr>
<td><$link to=<<Tiddler1>>/>
</td>
<td><$text text={{{ [<Tiddler1>links[]match<TiddlerX>then[-->]] 
[<TiddlerX>links[]match<Tiddler1>then[<--]] }}}/>
</td>
<td><$link to=<<TiddlerX>>/>
</td>
</tr>
</$list>
</table>
</$vars>

[image: Screenshot 2021-05-01 5.04.16 PM.png]

On Saturday, May 1, 2021 at 4:13:48 PM UTC-3 Mohammad wrote:

> On Sat, May 1, 2021 at 11:10 PM si <[email protected]> wrote:
>
>> Not sure if it's the simplest solution, but does this do what you want?
>>
>> {{{ [<currentTiddler>links[]match[Sample tiddler]then[Is a link]else[Is a 
>> backlink]] }}}
>>
>
>
> Works! Thank you! 
>
>  
>
>>
>>
>> On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:
>>
>>> I have a sample tiddler. It is a link or a backlink in my current 
>>> Tiddler, but I do not know this is in advance!
>>>
>>> What is the simplest solution to find if this sample tiddler is link or 
>>> backlink with regard to my currentTiddler?
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>> -- 
>> 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/aa0184f6-28ce-486d-9832-2c3835cb52adn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/f1d38ee7-9689-4a4e-9f56-0ec98a2c557fn%40googlegroups.com.

Reply via email to