The last example does that, it falls back to an entirely different URL if 
no ISBN fields exist. 

On Sunday, January 3, 2021 at 3:59:03 PM UTC+1 [email protected] wrote:

> This looks nice! It appears to put all the right code in the right place. 
> Now if only librarything servers would quit dying on me...
>
> Are there any other widgets with :filter and :else options that I could 
> use to do something similar w/ a link? Specifically, use isbn or isbn13 in 
> link, but if they don't exist show this *other* link? I've been using [ext[ 
> link format, but need to do some if/then...
>
> On Sunday, January 3, 2021 at 8:38:38 AM UTC-6 [email protected] wrote:
>
>> Here is an example on falling back to the generic image if no ISBN fields 
>> are defined
>>
>> \define makeimg()
>> <$vars isbn={{{[{!!isbn}!is[blank]else{!!isbn13}]}}}>
>> <$image source={{{ [[
>> http://covers.librarything.com/devkey/dev-key-goes-here/medium/isbn/]addsuffix<isbn>]
>>  
>> :filter[<isbn>!is[blank]] :else[[generic image URL]] }}}/>
>> </$vars>
>> \end
>>
>> <<makeimg>>
>>
>

-- 
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/5f3c7b00-065d-401b-a595-81b9f1a73f27n%40googlegroups.com.

Reply via email to