Thanks Brenden, this looks like is should work (similar to what i had tried), but I keep getting a false result.
I've put them separately to check the values are correct:
{%CurrentDocument.DocumentCreatedByUser.OtherBindings.UserRoles.FieldsAsObjects.RoleID.DisplayNames |(user)zbynekh|(hash)9268b55c45d24419fbfc8f6860c1fafd41bec51d3834e04001fdb9b26a0804c3%}
{%CurrentUser.OtherBindings.UserRoles.FieldsAsObjects.RoleID.DisplayNames|(user)zbynekh|(hash)8abcad0f2b77376d75a991b7568050e26f1e8c051cf34ad78f68c207b996201b%}
Both of these give "communications" which should make it true?!
Do you know why this may not be resolving correctly? I've even compared the same data and it still says false!:
{% If(CurrentUser.OtherBindings.UserRoles.FieldsAsObjects.RoleID.DisplayNames == CurrentUser.OtherBindings.UserRoles.FieldsAsObjects.RoleID.DisplayNames){true}else{false} |(user)zbynekh|(hash)79152def5e48fd70995d9f7721b8d410fcd8662dd167ac7c8e5058a1fc82d09b%}