Groovy
Retrieve the first object (index [0]) among all objects attached to this page and class XWikiComments
com.xpn.xwiki.api.Object@795fd974
Retrieve all objects attached to this page and of class XWikiComments
[com.xpn.xwiki.api.Object@5b17d3ff, com.xpn.xwiki.api.Object@795f3911, com.xpn.xwiki.api.Object@5a9bc957, com.xpn.xwiki.api.Object@29bf9d3a, com.xpn.xwiki.api.Object@62eb603f, com.xpn.xwiki.api.Object@4afbfad5, com.xpn.xwiki.api.Object@6510dc68, com.xpn.xwiki.api.Object@35f663ae, com.xpn.xwiki.api.Object@430a502f, com.xpn.xwiki.api.Object@5a16600b]
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