


{"id":393886,"date":"2024-11-12T19:09:32","date_gmt":"2024-11-12T19:09:32","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/"},"modified":"2024-12-04T13:06:04","modified_gmt":"2024-12-04T13:06:04","slug":"replacing-nth-element-of-array","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/replacing-nth-element-of-array\/","title":{"rendered":"Replacing Nth element of array"},"content":{"rendered":"<p>&lt;p&gt;&lt;p&gt;I can replace the element at a fixed index of an array using the Assign of Structured Element Array Operator.&nbsp;&lt;br&gt;However I need to replace the Nth element, where N is an input to my function &#8211; when I try this (using N instead of some constant) I hit&nbsp;&lt;\/p&gt;&lt;p&gt;<strong>Type Error ERR_105 Not a size expression at REFRESH_CMD_TIMEOUT\/_L21=&nbsp;<\/strong>&lt;\/p&gt;&lt;p&gt;<strong>Identifier N should be bound to a static size expression&nbsp;<\/strong>&lt;\/p&gt;&lt;p&gt;Can someone let me know if a. this is possible, and b. if possible, how to proceed&lt;\/p&gt;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-393886","topic","type-topic","status-answered","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_author_ip":["57.140.28.1"],"_btv_view_count":["360"],"_bbp_topic_status":["answered"],"_edit_last":["461156"],"_bbp_revision_log":["a:1:{i:393890;a:2:{s:6:\"author\";i:461156;s:6:\"reason\";s:0:\"\";}}"],"_bbp_subscription":["461156","397"],"_bbp_topic_id":["393886"],"_bbp_forum_id":["27795"],"_bbp_engagement":["461156","397"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["396271"],"_bbp_last_active_id":["396271"],"_bbp_last_active_time":["2024-12-04 13:05:54"]},"test":"jeremy-rutmanus-af-mil"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886\/revisions"}],"predecessor-version":[{"id":393890,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/393886\/revisions\/393890"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=393886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}