Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[Bug?] Passing objects as parameters

Anyone worked out how to pass a javascript object as a parameter to a macro?
<<set $chat to { variable: "details" }>>
<<converse $chat>>
is giving me an error message:
<<converse state.history[0].variables.chat == null &amp;&amp; (state.history[0].variables.chat = 0);state.history[0].variables.chat>> bad argument: ==
Ah, answered me own question. Seems I have to go fishing in the variable stack...
<<converse state.history[0].variables.chat>>
works.  Not entirely sure I should have to do that, though (or that it is particularly wise to do so).

Comments

Sign In or Register to comment.