[tw5] Re: Please help with a "complex" then else filter

2020-05-22 Thread TonyM
Joshua

I believe saqs form is nessasary because it must be a seperat run to operate on 
all tiddlers resulting from all previous runs not only the
 [is[system]here]

Do tell me so if I got it wrong.

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49a99a6f-4334-4c8c-b448-ce6e85b625e6%40googlegroups.com.


[tw5] Re: Please help with a "complex" then else filter

2020-05-22 Thread Joshua Fontany
Syntax gremlins (they bug me too). "Runs" (sequences of filter operators) 
should be wrapped in square brackets, so

-[is[system]]then[true]else[false]

Should be

-[is[system]then[true]else[false]]


But I'm not sure that's going to do what you want AAah, Saq found the 
syntax, good.

Best,
Joshua Fontany

On Thursday, May 21, 2020 at 11:56:23 PM UTC-7, Tony K wrote:
>
>
>
> i have this filter
>
>[regexp:title] [regexp:text] -[all[current]
> backlinks[]] -[is[current]] -[tag[hide]] -[is[system]]
>
> and it is working fine, however if I want to make it a "true"/ "false" 
> variable
>
>
> <$varsisFreelink = {{{ [regexp:title] [regexp:text
> ] -[all[current]backlinks[]] -[is[current]] -[tag[hide]] 
> -[is[system]]then[true]else[false] }}} >
>
>
> it is giving me a syntax error
>
> Is this multi - parts filter supported with the if then else?
>
> thank you 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/950bf462-9375-417c-8131-0b7ae02275a6%40googlegroups.com.


[tw5] Re: Please help with a "complex" then else filter

2020-05-22 Thread Mat
Since your first filter works, I guess it is not the problem but just to 
make sure:

   - I don't think there can be spaces next to the equal sign. Or I just 
   learned something new.
   - There are some differences between the SetWidget and the VarsWidget 
   where the former is somewhat more powerful. Can't recall details. Anyway, 
   you could see if it happens to work using the SetWidget instead.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5cdd0e79-90b0-4e5c-b076-1989d1785efc%40googlegroups.com.


[tw5] Re: Please help with a "complex" then else filter

2020-05-22 Thread Tony K
Man you are so quick it is not even funny

thank you so much 

On Friday, May 22, 2020 at 10:01:08 AM UTC+3, Saq Imtiaz wrote:
>
> try:
>
> {{{ [regexp:title] [regexp:text] 
> -[all[current]backlinks[]] -[is[current]] -[tag[hide]] -[is[system]] 
> +[then[true]else[false]] }}}
>
> On Friday, May 22, 2020 at 8:56:23 AM UTC+2, Tony K wrote:
>>
>>
>>
>> i have this filter
>>
>>[regexp:title] [regexp:text] -[all[current]
>> backlinks[]] -[is[current]] -[tag[hide]] -[is[system]]
>>
>> and it is working fine, however if I want to make it a "true"/ "false" 
>> variable
>>
>>
>> <$varsisFreelink = {{{ [regexp:title] [regexp:text
>> ] -[all[current]backlinks[]] -[is[current]] -[tag[hide]] 
>> -[is[system]]then[true]else[false] }}} >
>>
>>
>> it is giving me a syntax error
>>
>> Is this multi - parts filter supported with the if then else?
>>
>> thank you 
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/10bf6186-f98e-4411-a093-e585a622c627%40googlegroups.com.


[tw5] Re: Please help with a "complex" then else filter

2020-05-22 Thread Saq Imtiaz
try:

{{{ [regexp:title] [regexp:text] 
-[all[current]backlinks[]] -[is[current]] -[tag[hide]] -[is[system]] 
+[then[true]else[false]] }}}

On Friday, May 22, 2020 at 8:56:23 AM UTC+2, Tony K wrote:
>
>
>
> i have this filter
>
>[regexp:title] [regexp:text] -[all[current]
> backlinks[]] -[is[current]] -[tag[hide]] -[is[system]]
>
> and it is working fine, however if I want to make it a "true"/ "false" 
> variable
>
>
> <$varsisFreelink = {{{ [regexp:title] [regexp:text
> ] -[all[current]backlinks[]] -[is[current]] -[tag[hide]] 
> -[is[system]]then[true]else[false] }}} >
>
>
> it is giving me a syntax error
>
> Is this multi - parts filter supported with the if then else?
>
> thank you 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8773140e-cfcf-426b-8598-7ffcf5e9a093%40googlegroups.com.