The question()
function expects a question ID (four-character ID) and does not know what to do, if you give it an item ID.
One option would be to specify the item separately:
if (value('IN02_01') <= 10) {
question('IN06', 1);
}
That, however, will embed the question several times. Therefore, it's more elegant to create an array with those items that you would like to present - roughly following the manual Use Selected Items in Another Question.
Try something like this:
$items = getItems('IN02', '<=', 10);
question('IN06', $items);
Actually, I am not perfectly sure how that code will handle items that were not ranked at all. Because a -1 (missing answer) is also smaller than 10. If they appear in the followup question, we may have to use a little FOR loop instead of getItems()
.