[xwiki-devs] XWiki - Check Two Objects

Prathap Pandian prathapmeister at gmail.com
Fri Jul 4 05:49:20 CEST 2008


yes got it thanks.

--
Prathap

On Thu, Jul 3, 2008 at 6:44 PM, Jean-Vincent Drean <jv at xwiki.com> wrote:

> On Thu, Jul 3, 2008 at 2:43 PM, Prathap Pandian
> <prathapmeister at gmail.com> wrote:
> > #set($username=$context.user)
> > #if($username.equals(todoObj.Assignee))
> > #end
>
> There's a missing $ before todoObj.
>
> Thanks to velocity you can also do :
>
> #if ($context.user == $todoObj.Assignee)
> #end
>
> --
> Jean-Vincent Drean
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>


More information about the devs mailing list