My code looks like this:
#macro (myMac $listOfValues)
#foreach ($val in ${listOfValues})
#set ($subList = $val.child())
#if (some condition)
some output
#if (${velocityCount} < ${listOfValues.size()})
,\n
#end
#else
#myMac(${subList}) -- B
#end
#end
#end
#myMac (${listOfValues}) -- A
listOfValues -- is a list of string subList -- is a list of String
${listOfValues.size() is always zero, during the recursive call (call from B), though the list has more than one value. However when the macro is called from A the size is correct. Can you please point out if there is something missing...