#macro(showcats $categories) #foreach($cat in $categories) #set($depth = $cat.getCategoryPath().split("/").size() - 1) #set($indent = "") #foreach($i in [1..$depth]) #set($indent = "${indent} ") #end #if($cat.hasChildren()) ${indent} $cat.getName() #showcats($cat.children) #else ${indent} $cat.getName() [$cat.id] #end #end #end You're analyzing questions that are part of a multiple choice test. The question you are analyzing right now is: $questiontext There are the following options: #foreach($response in $question.getResponses()) $response.text #end The test consists of multiple categories in a heirarchical structure. These are represented below using / as a seperator with the highest level categories on the left and the lowest on the right. I've wrapped the ID you should provide in square brackets [ID] before the category path. Please provide just the ID and remove the brackets. Do not guess, just return null if you are unsure. Categories: #showcats($category.children, 0) This is important background information on the test and the questions. $!inputdata