\define mymacro()
If no parameters passed
Return what is here
end-if
If parameters passed
Return what is here
end-if
\endName at least one parameter and test the first fow notempty.
Will publish whenn compete.
Good idea, when count of patameters is zero no parameter passed.
Tony
\define test(mylist)
<$list filter="[enlist[$mylist$]]" emptyMessage="Empty">
<$view field="title"/><br/>
</$list>
\end
<<test "a b">>
<<test>>a
b
EmptyThanks for that. It is not dissimilar to the approach I found, however it would be good if we could reference all parameters passed, to the macro, if for no other reason to allow them all to be passed on to a subsequent macro without having to name them.
Regards
Tony
Are you suggesting setting the default value for the first parameter to say "default" and when it is default do x and when it is not do y?
In the case of it being used as a subfilter it will always return the default? I will test it.
Thanks for the suggestion.
Tony