Hi, all —
 
Can anyone tell me how to pass named parameters into a macro and use them to 
define variables?  What I'm looking to do is define a macro like so:
 

> <<macroName parameter1:"value1" parameter2:"value2" parameter3:"value3">>

 
And then use that values in my macro, as JS variables.
 
I've tried:
 

> var variable1 = getParam(params,"parameter1","");

 
... to no avail.  I suspect there's a simple syntax error at play, but I 
can't tell what it is.
 
Does anyone have a moment to set me straight on how the getParam function 
works — or point me toward some helpful documentation?  :)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/ryigm4X-i8EJ.
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.

Reply via email to