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.

