<?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>You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/discussions/f/general/37278/you-are-referencing-and-using-arrays-of-a-cdt-custom-data-type-which-two-statements-are-true-choose-two</link><description>You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.) 
 
 A. Other Appian functions can be used within the square brackets &amp;quot;[]&amp;quot; when using dot notation to return specific data from the array. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139629?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 12:46:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:110a6eaf-50b4-47f9-b200-a7298dcde2a4</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="251814" url="~/discussions/f/general/37278/you-are-referencing-and-using-arrays-of-a-cdt-custom-data-type-which-two-statements-are-true-choose-two/139475"] I think the statement is not correct.[/quote]
&lt;p&gt;the test question states &amp;quot;other appian functions can be used&amp;quot; within the square brackets (which is true) - but this doesn&amp;#39;t imply that you can use something nonsensical that fails to evaluate to a valid index of that array, which &amp;quot;proper(local!a)&amp;quot; would.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139614?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 05:20:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:34c89a94-9a9f-4745-9121-b92585a325ee</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/csteward"&gt;Chris&lt;/a&gt;&amp;nbsp;&amp;amp; &lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&amp;nbsp; Thank you for your valuable comments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139599?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 16:59:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c109768-94b7-4cc0-934b-0795f875680e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;B is, as mentioned, incorrect.&lt;/p&gt;
&lt;p&gt;The reason why: using index() gets the location of an array, returning a separate copy of that data (if any).&amp;nbsp; Square brackets refer directly to that position in the array, and can be used to access the value and also change the value within the original array (i.e. via an a!save() statement).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139595?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 16:14:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dfb8ce8-898e-4e75-94a1-36fd843f0567</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;A and C are correct, B and D are incorrect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139584?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 12:56:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f16a7d4c-4462-48d8-b508-4859f78ccd8e</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;local!data[length(local!data)] returning 14 i.e. 4th element. This is correct behavior.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {11,&amp;quot;test&amp;quot;, &amp;quot;abcd&amp;quot;, 14},
  local!data[length(local!data)]
)&lt;/pre&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139485?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 06:57:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc30b788-36ec-43e9-bfd8-d7694428b3dd</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1723532059002v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1723532258173v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I think &amp;quot;length&amp;quot; function is working like that. If it is working, length will be 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139482?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 06:49:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d91217d2-2dac-4775-9566-4d3c545edc57</guid><dc:creator>Yogi Patel</dc:creator><description>&lt;p&gt;An array contains four elements {11,&amp;quot;test&amp;quot;,&amp;quot;abcd&amp;quot;, &lt;strong&gt;14&lt;/strong&gt;} and the 4th element is 14. Hence, it &lt;span&gt;returning&lt;/span&gt; the correct result. I don&amp;#39;t see any issue with the result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: You are referencing and using arrays of a CDT (Custom Data Type). Which two statements are true? (Choose two.)</title><link>https://community.appian.com/thread/139475?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2024 05:50:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c9892ea-0da7-4855-a386-7d30ad7611aa</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;the context of option A, I think the statement is not correct.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1723528183931v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>