<?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>Logical expression in security action</title><link>https://community.appian.com/discussions/f/new-to-appian/38850/logical-expression-in-security-action</link><description>im using this code to display button for this 3 groups of users but its only appears only on the first expression groups which is:SLC_GRP_VERIFICATORE_INFRATEL, 
 is the logical expression of OR / AND is written bad?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Logical expression in security action</title><link>https://community.appian.com/thread/146906?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 16:17:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa9de666-19d5-4c24-b25e-3889e671676b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not sure what that logic should express. That or() only wraps a single condition, the and(). In the and, you define many conditions. Which is OK, but hard to validate. Especially without knowing any details.&lt;/p&gt;
&lt;p&gt;I suggest to first implement a more simplified version, and then add more complexity once that works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logical expression in security action</title><link>https://community.appian.com/thread/146905?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 16:16:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e656a7b2-8e3d-4d28-b1aa-e5cf4f02b5f0</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;The way this is written it is essentially a list of 3 different expressions, 1 for each of your or() statements which only contain one clause within (and()).&amp;nbsp; Assuming you want this to resolve true if any of the and() conditions are met, try:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;or(
  and(
    rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{8435c94d-c75d-4250-b60c-267fa8e9fe8c}&amp;#39;] = false,
    a!isNullOrEmpty(
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{6586c1e5-e5c7-4f5b-8a42-04f5c067aab3}&amp;#39;]
    ),
    a!isUserMemberOfGroup(
      username: loggedInUser(),
      groups: cons!SLC_GRP_VERIFICATORE_INFRATEL
    ),
    contains(
      cons!SLC_INTS_ID_FASI_PROGETTO_DI_CONNESSIONE[3],
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{12f3ca11-6e56-437c-a111-0188f3e80076}&amp;#39;]
    )
  ),
  and(
    rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{8435c94d-c75d-4250-b60c-267fa8e9fe8c}&amp;#39;] = false,
    a!isNullOrEmpty(
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{6586c1e5-e5c7-4f5b-8a42-04f5c067aab3}&amp;#39;]
    ),
    a!isUserMemberOfGroup(
      username: loggedInUser(),
      groups: cons!SLC_GRP_RUP_INFRATEL
    ),
    contains(
      cons!SLC_INTS_ID_FASI_PROGETTO_DI_CONNESSIONE[4],
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{12f3ca11-6e56-437c-a111-0188f3e80076}&amp;#39;]
    )
  ),
  and(
    a!isUserMemberOfGroup(
      username: loggedInUser(),
      groups: cons!SLC_GRP_PMS_INFRATEL
    ),
    contains(
      cons!SLC_INTS_ID_FASI_PROGETTO_DI_CONNESSIONE[3],
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{12f3ca11-6e56-437c-a111-0188f3e80076}&amp;#39;]
    ),
    contains(
      cons!SLC_INTS_ID_FASI_PROGETTO_DI_CONNESSIONE[4],
      rv!record[&amp;#39;recordType!{6456804e-1013-4209-bb05-6edb57f49898}.fields.{12f3ca11-6e56-437c-a111-0188f3e80076}&amp;#39;]
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>