thank you !!!!!!!!! Will try that when I get back to a computer tonight :D I need a better JS book, tertiary operator was not in my reference. . . The more I learn, the less I know. . .
I appreciate the help ! Mike (from my phone) On Mar 20, 2:08 pm, "Mark S." <[email protected]> wrote: > Is createTiddlyText a function you've written? > > Anyway, you're trying to nest an "if" statement inside of a function > argument, which you can't do that way in javascript. > > What you might be able to use is the "?:" tertiary operator. > > createTiddlyText(createTiddlyLink(sp,tag||title,false),(title? > title:tag) ); > > Mark > > On Mar 20, 4:27 am, Mike <[email protected]> wrote: > > > The Idea > > createTiddlyText(createTiddlyLink(sp,tag||title,false),if (title > > =='undefined'){return 'tag'} else {return 'title'}); > > > Works: (x2) > > createTiddlyText(createTiddlyLink(sp,tag||title,false),tag); > > createTiddlyText(createTiddlyLink(sp,tag||title,false),title); > > > Do I need to break it up, or am I just missing / using wrong syntax? > > > Open to any suggestions, > > > Mike -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

