<?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>Interface</title><link>https://community.appian.com/discussions/f/user-interface/27247/interface</link><description>In the interface. I am getting error message for the below piece of code. 
 Error message : 
 Expression evaluation error in rule &amp;#39;sshs_startformquestions&amp;#39; at function a!cardLayout [line 48]: Cannot compare incompatible operands of type Null and type</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface</title><link>https://community.appian.com/thread/106900?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:57:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:201b6bfa-284b-4349-9f2b-0c27eb794408</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selected1,
  local!selected2,
  local!selected3,
  {
    a!richTextDisplayField(
      value: { a!richTextItem(text: &amp;quot;&amp;quot;, style: &amp;quot;PLAIN&amp;quot;) }
    ),
    a!radioButtonField(
      label: &amp;quot;1&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected1,
      saveInto: local!selected1,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: { &amp;quot;document&amp;quot;,  },
              link: a!safeLink(label: &amp;quot; methods&amp;quot;, openLinkIn: &amp;quot;SAME_TAB&amp;quot;),
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      showWhen: if(
        a!isNullOrEmpty(local!selected1),
        {},
        local!selected1 = 2
      )/*showWhen: local!selected1=2,*/
      
    ),
    a!radioButtonField(
      label: &amp;quot;2.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected2,
      saveInto: local!selected2,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen: if(
        a!isNullOrEmpty(local!selected1),
        null,
        local!selected1 = 1
      )/*showWhen: local!selected1 =1*/
      
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: { &amp;quot; document&amp;quot;,  },
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      /*showWhen: if(*/
      /*a!isNullOrEmpty(local!selected1),null, */
      /**/
      /*local!selected1=1*/
      /*)*/
      showWhen: if(
        and(
          a!isNotNullOrEmpty(local!selected1),
          a!isNotNullOrEmpty(local!selected2)
        ),
        and(local!selected1 = 1, local!selected2 = 2),
        {}
      )
    ),
    a!radioButtonField(
      label: &amp;quot;3.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected3,
      saveInto: local!selected3,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen: {
        if(
          and(
            a!isNullOrEmpty(local!selected1),
            a!isNullOrEmpty(local!selected2)
          ),
          {},
          and(
            tointeger(local!selected2) = 1,
            tointeger(local!selected1) = 1
          )
        )
      }
    ),
    /*a!cardLayout(*/
    /*contents: {*/
    /*a!richTextDisplayField(*/
    /*value: {*/
    /*a!richTextItem(*/
    /*text: {*/
    /*&amp;quot; document&amp;quot;,*/
    /*                */
    /*},*/
    /*linkstyle: &amp;quot;STANDALONE&amp;quot;*/
    /*)*/
    /*}*/
    /*),*/
    /*        */
    /*},*/
    /*style: &amp;quot;INFO&amp;quot;,*/
    /*showBorder: false,*/
    /*showWhen: {*/
    /*and(*/
    /*local!selected1 = 1,*/
    /*local!selected2 = 1,*/
    /*local!selected3 = 2*/
    /*)*/
    /*}*/
    /*),*/
    /*    */
    
  },
  
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Just few changes in the show When. You can also create an expression rule and call it multiple places avoiding typing of same code lines with different values.&lt;/p&gt;
&lt;p&gt;When there is no value in your Local variable it will not be able to determine the type. hence the error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106899?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:50:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4e208fe-83b1-4750-9919-9d364ca1e507</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selected1,
  local!selected2,
  local!selected3,
  {
    a!richTextDisplayField(
      value: {
        a!richTextItem(
          text: &amp;quot;&amp;quot;,
          style: &amp;quot;PLAIN&amp;quot;
        )
      }
    ),
    a!radioButtonField(
      label: &amp;quot;1&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected1,
      saveInto: local!selected1,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: {
                &amp;quot;document&amp;quot;,
                
              },
              link: a!safeLink(
                label: &amp;quot; methods&amp;quot;,
                openLinkIn: &amp;quot;SAME_TAB&amp;quot;
              ),
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      showWhen:if(
        a!isNullOrEmpty(
          local!selected1),null,local!selected1 = 2
        )
      
      /*showWhen: local!selected1=2,*/
      ),
      
         a!radioButtonField(
      label: &amp;quot;2.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected2,
      saveInto: local!selected2,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen:if(
        a!isNullOrEmpty(
          local!selected1),null,local!selected1 = 1
      )
      
      /*showWhen: local!selected1 =1*/
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: {
                &amp;quot; document&amp;quot;,
                
              },
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      /*showWhen: if(*/
       /*a!isNullOrEmpty(local!selected1),null, */
/**/
       /*local!selected1=1*/
/*)*/
      
      showWhen: and(
        local!selected1 =1, 
        local!selected2=2
      )
      

      
      

      
    ),
    a!radioButtonField(
      label: &amp;quot;3.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected3,
      saveInto: local!selected3,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen: {
        and(local!selected2 = 1, local!selected1 = 1)
      }
      
     
    ),
   
    /*a!cardLayout(*/
      /*contents: {*/
        /*a!richTextDisplayField(*/
          /*value: {*/
            /*a!richTextItem(*/
              /*text: {*/
                /*&amp;quot; document&amp;quot;,*/
/*                */
              /*},*/
              /*linkstyle: &amp;quot;STANDALONE&amp;quot;*/
            /*)*/
          /*}*/
        /*),*/
/*        */
      /*},*/
      /*style: &amp;quot;INFO&amp;quot;,*/
      /*showBorder: false,*/
      /*showWhen: {*/
        /*and(*/
          /*local!selected1 = 1,*/
          /*local!selected2 = 1,*/
          /*local!selected3 = 2*/
        /*)*/
      /*}*/
    /*),*/
/*    */
  },
  
)&lt;/pre&gt;This is the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106898?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:47:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6bd4fbef-f5d7-416d-927a-496d2c4d6e48</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selected1,
  local!selected2,
  local!selected3,
  {
    a!richTextDisplayField(
      value: {
        a!richTextItem(
          text: &amp;quot;Please answer the below question(s)&amp;quot;,
          style: &amp;quot;PLAIN&amp;quot;
        )
      }
    ),
    a!radioButtonField(
      label: &amp;quot;1.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected1,
      saveInto: local!selected1,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: {
&amp;quot;&amp;quot;
              },
              link: a!safeLink(
                label: &amp;quot;Appian Hardware Sizing methods&amp;quot;,
                openLinkIn: &amp;quot;SAME_TAB&amp;quot;
              ),
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      showWhen:if(
        a!isNullOrEmpty(
          local!selected1),null,local!selected1 = 2
        )
      
      /*showWhen: local!selected1=2,*/
      ),
      
         a!radioButtonField(
      label: &amp;quot;2&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected2,
      saveInto: local!selected2,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen:if(
        a!isNullOrEmpty(
          local!selected1),null,local!selected1 = 1
      )
      
      /*showWhen: local!selected1 =1*/
    ),
    a!cardLayout(
      contents: {
        a!richTextDisplayField(
          value: {
            a!richTextItem(
              text: {
                &amp;quot;document&amp;quot;,
                
              },
              link: a!documentDownloadLink(document: 2354149, ),
              linkstyle: &amp;quot;STANDALONE&amp;quot;
            )
          }
        ),
        
      },
      style: &amp;quot;INFO&amp;quot;,
      showBorder: false,
      /*showWhen: if(*/
       /*a!isNullOrEmpty(local!selected1),null, */
/**/
       /*local!selected1=1*/
/*)*/
      
      showWhen: and(
        local!selected1 =1, 
        local!selected2=2
      )
    ),
    a!radioButtonField(
      label: &amp;quot;3.&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      choiceLabels: { &amp;quot;Yes&amp;quot;, &amp;quot;No&amp;quot; },
      choiceValues: { 1, 2 },
      value: local!selected3,
      saveInto: local!selected3,
      choiceLayout: &amp;quot;COMPACT&amp;quot;,
      choiceStyle: &amp;quot;STANDARD&amp;quot;,
      required: true,
      showWhen: {
        and(local!selected2 = 1, local!selected1 = 1)
      }
      
     
    ),
    /*a!cardLayout(*/
      /*contents: {*/
        /*a!richTextDisplayField(*/
          /*value: {*/
            /*a!richTextItem(*/
              /*text: {*/
                /*&amp;quot;document&amp;quot;,*/
/*                */
              /*},*/
              /*link: a!documentDownloadLink(document: 2354149, ),*/
              /*linkstyle: &amp;quot;STANDALONE&amp;quot;*/
            /*)*/
          /*}*/
        /*),*/
/*        */
      /*},*/
      /*style: &amp;quot;INFO&amp;quot;,*/
      /*showBorder: false,*/
      /*showWhen: {*/
        /*and(*/
          /*local!selected1 = 1,*/
          /*local!selected2 = 1,*/
          /*local!selected3 = 1*/
        /*)*/
      /*}*/
    /*),*/
    /*a!cardLayout(*/
      /*contents: {*/
        /*a!richTextDisplayField(*/
          /*value: {*/
            /*a!richTextItem(*/
              /*text: {*/
                /*&amp;quot; ocument&amp;quot;,*/
/*                */
              /*},*/
              /*link: a!documentDownloadLink(document: 2354149, ),*/
              /*linkstyle: &amp;quot;STANDALONE&amp;quot;*/
            /*)*/
          /*}*/
        /*),*/
/*        */
      /*},*/
      /*style: &amp;quot;INFO&amp;quot;,*/
      /*showBorder: false,*/
      /*showWhen: {*/
        /*and(*/
          /*local!selected1 = 1,*/
          /*local!selected2 = 1,*/
          /*local!selected3 = 2*/
        /*)*/
      /*}*/
    /*),*/
/*    */
  },
  
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106897?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:43:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0770fddd-7322-4003-a358-3d2a1f6c89e1</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/hema.mathivathanan"&gt;hema.mathivathanan&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Can you please share your code? It would be more clear in order to provide an answer.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/Insert-Code.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106896?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:39:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e80f2e4-fb9b-4c44-884e-a8630fbe950e</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;Thanks for your reply. I have 3 local variables defined. It would be great if you can help here on how to use the isnullorempty condition&lt;br /&gt; showWhen: and(&lt;br /&gt; local!selected1 =1, &lt;br /&gt; local!selected2=2&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106895?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:35:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b30b6d8-062e-4686-8e5a-24512077afbe</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106892?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 05:31:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47553b75-1297-4abb-b12d-a63511d38ee9</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;There are two Possibilities of why you see the error,&lt;/p&gt;
&lt;p&gt;1. Either your Local variable local!selected1 has no value,&lt;/p&gt;
&lt;p&gt;if it is giving this message as soon as you write the code, may be you can do a null check for your showWhen. Lets say if-isnullorempty-{}-your condition.&lt;/p&gt;
&lt;p&gt;2. It has a non integer value. If you are fetching or indexing it from somewhere else, may be you can wrap it in the tointeger() function.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface</title><link>https://community.appian.com/thread/106888?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 03:19:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2c343de-928a-4f99-9c3c-32943cc4bd63</guid><dc:creator>Ramnadh Srikanth Vemakoti</dc:creator><description>&lt;p&gt;Here , local!selected1 is having a null value so its giving the error message. you can use tointeger(local!selected1) = 2 and it will not give the error message as it will change the variable into the required format of integer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>