[tw5] Re: length operator in TW5.1.20pre
Mohammad, I know how you feel, yet I do not have too many problems now, in part because I write code progressivly. I would have placed x=<> in there as soon as it did not do as expected. I will try and capture some of these design and debug methods and share. 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 post to this group, send email to tiddlywiki@googlegroups.com. 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/5e9e702b-502c-453a-9301-2f155187d7bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: length operator in TW5.1.20pre
Tony This took a lot of time to debug a code! Undefined variable or wrongly assigned. We really need a good TW documentation. --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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/0ec16a57-f5c9-488a-a31b-3a82026cef2f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: length operator in TW5.1.20pre
Diego, Thank you for clarification. But when you code, this is error prone! --Mohammad On Saturday, February 23, 2019 at 1:08:12 AM UTC+3:30, Diego Mesa wrote: > > Hey Mohammad, > > If you put a <> in there before the $text, you can see that as you have > it, x is "true", which is why length returns 4. > > > On Friday, February 22, 2019 at 2:35:14 PM UTC-6, Mohammad wrote: >> >> Look at below test code >> >> <$vars x=> >> <$text text={{{ [length[]] }}}/> >> >> >> Testing on https://tiddlywiki.com/prerelease/ results in >> >> 4 >> >> >> what is going wrong? >> >> --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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/994f52b3-a5c4-4c33-afa2-a9baee02a6ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: length operator in TW5.1.20pre
What a nice way to write obscure code. Test for len 4 or len 5 for true false! 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 post to this group, send email to tiddlywiki@googlegroups.com. 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/3525dcb7-d264-43c1-9266-ceddb183d504%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: length operator in TW5.1.20pre
Hey Mohammad, If you put a <> in there before the $text, you can see that as you have it, x is "true", which is why length returns 4. On Friday, February 22, 2019 at 2:35:14 PM UTC-6, Mohammad wrote: > > Look at below test code > > <$vars x=> > <$text text={{{ [length[]] }}}/> > > > Testing on https://tiddlywiki.com/prerelease/ results in > > 4 > > > what is going wrong? > > --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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/25659eed-625a-4bd1-a38a-ae4491a94fae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.