Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@47f2ea2b
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@53865b5d, com.xpn.xwiki.api.Object@19d86182, com.xpn.xwiki.api.Object@4ce9ab0f, com.xpn.xwiki.api.Object@dd8d3c, com.xpn.xwiki.api.Object@51635e95, com.xpn.xwiki.api.Object@52d6b1f1, com.xpn.xwiki.api.Object@d3c6fb4, com.xpn.xwiki.api.Object@7ac99935, com.xpn.xwiki.api.Object@4969a58d, com.xpn.xwiki.api.Object@36f3f1a2]
Retrieve the author property of all objects attached to this page and of class XWikiComments
println objsAuthors
[XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.IsabelListaGarcia, Anonymous, XWiki.YolandaMariaListeMartinez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez, XWiki.RicardoRodriguezFernandez]
Retrieve the author property of the fifth object attached to this page and of class XWikiComments by index
println objsAuthor
XWiki.IsabelListaGarcia
Retrieve the author property of the first object attached to this page and of class XWikiComments by index; objs was assigned above!
XWiki.RicardoRodriguezFernandez