


{"id":368608,"date":"2024-05-26T05:01:57","date_gmt":"2024-05-26T05:01:57","guid":{"rendered":"\/forum\/forums\/topic\/escaping-double-for-loop-using-break\/"},"modified":"2024-05-26T05:01:57","modified_gmt":"2024-05-26T05:01:57","slug":"escaping-double-for-loop-using-break","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/escaping-double-for-loop-using-break\/","title":{"rendered":"escaping double for loop using break"},"content":{"rendered":"<p>I&#8217;m using Lumerical Mode and have some questions about it.&nbsp;<\/p>\n<p>I made a double for loop and wanted to escape from the inner part of the &#8216;for loop&#8217; (there is an &#8216;if&#8217; condition, and I want to select just one value of which satisfied the conditions), but I found that the lumerical break script ceases whole processing. (As I know)&nbsp;<\/p>\n<p>Is there any way to just get out of the inner for loop?&nbsp;<\/p>\n<p>(If there are i = 1,2,3 &amp; j = 1,2,3,4,5, and j which satisfies the conditions A and B are j = 1, 4 (i = 1), I only want to select j = 1 (and break) and move to i = 2 for another iteration.)&nbsp;<\/p>\n","protected":false},"template":"","class_list":["post-368608","topic","type-topic","status-closed","hentry","topic-tag-photonics"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["137041","33648"],"_bbp_author_ip":["23.32.16.81"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["1181"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["368608"],"_bbp_forum_id":["27833"],"_bbp_engagement":["33648","137041"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["368775"],"_bbp_last_active_id":["368775"],"_bbp_last_active_time":["2024-05-27 18:12:20"]},"test":"russ44kaist-ac-kr"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/368608","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":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/368608\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=368608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}