*Set Cond Shell_Solid_Contact *nodes 
*If(CondNumEntities(Int)>0)
*Set Var CountNodesSelection=0
// selection has *CondNumEntities entities
   SELECTION "*MatProp(Selection_Name)#*MatNum" LIST
*loop nodes *OnlyInCond
 *NodesNum *\
*If(CountNodesSelection>=10)
*Set Var CountNodesSelection=0

*EndIf
*Set Var CountNodesSelection=Operation(CountNodesSelection+1)
*End nodes
*EndIf
