Thanks Jeremy!
 I got it. So the in my example the filter in list has a value and that was 
why it returned an output.

Cheers
Mohammad

On Thursday, February 14, 2019 at 11:54:34 AM UTC+3:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
> The removeprefix operator has no effect if the operand is 
> blank: [[foo]removeprefix[]] equals "foo". It completely removes items in 
> the input list that do not have the specified prefix.
>
> Best wishes
>
> Jeremy
>
> --
> Jeremy Ruston
> [email protected] <javascript:>
> https://jermolene.com
>
> On 14 Feb 2019, at 09:12, Mohammad <[email protected] <javascript:>> 
> wrote:
>
> It seems when the input to these operator is empty they still work!!
>
>
> \define macz(xx, pp:"")
> <$list filter="[<__xx__>removeprefix<__pp__>]">
> Test: <<currentTiddler>>
> </$list>
> \end
>
>
> <<macz xx:"abKIT-1" ab>>
> <<macz xx:"abKIT-2" >>
> <<macz xx:"abKIT-3" uu>>
>
>
> Return:
>
> Test: KIT-1 
>
> Test: abKIT-2 
>
>
>
> Example 2 should return empty value!!
>
> Is this a bug?
>
> --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] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> 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/b5e7f2c4-3cd5-4e8a-a0ad-ed5b1eb2c116%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/b5e7f2c4-3cd5-4e8a-a0ad-ed5b1eb2c116%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 post to this group, send email to [email protected].
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/f2523ea3-afdc-4be3-85e9-a5506a5b4b74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to