[xwiki-devs] XWiki - Check Two Objects

Jean-Vincent Drean jv at xwiki.com
Thu Jul 3 15:14:56 CEST 2008


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


More information about the devs mailing list