<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>comparision of group type variable with group constant always fails.</title><link>https://community.appian.com/discussions/f/general/13323/comparision-of-group-type-variable-with-group-constant-always-fails</link><description>ri!teamToAssignTask = cons!TDD_Group_Cons ( ) 
 The above condition is always returning false. The ri!teamToAssignTask is of type &amp;quot;Group&amp;quot; and constant is of a group. Somehow always this comparision is returning false. 
 
 Please refer to the process variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: comparision of group type variable with group constant always fails.</title><link>https://community.appian.com/thread/60253?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 21:44:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55fb3b35-fbc7-49c7-8c3e-f61adefc9c24</guid><dc:creator>Robert Shankin</dc:creator><description>if the PV type is already group, then you shouldn&amp;#39;t have to cast it to a group using fn!toGroup().&lt;br /&gt;
&lt;br /&gt;
Assuming that your rule is called SBX_groupCompareTest, and the pv is of group type, (as you&amp;#39;ve shown) you should be able to call rule!SBX_groupCompareTest(pv!teamToAssignTask) and get a true result if the groups match.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: comparision of group type variable with group constant always fails.</title><link>https://community.appian.com/thread/60249?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 18:52:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8bb14e6f-8efd-46f1-9f50-078db64bd540</guid><dc:creator>sagarl511</dc:creator><description>Can you try tointeger(ri!teamtoassigntask) = tointeger(cons!tdd_group)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>