{"id":1543,"date":"2020-02-20T09:44:36","date_gmt":"2020-02-20T15:44:36","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1543"},"modified":"2020-02-20T09:44:36","modified_gmt":"2020-02-20T15:44:36","slug":"choose","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1543","title":{"rendered":"CHOOSE &#8211; tree of decisions"},"content":{"rendered":"\n<p>If you are like me, then you must have needed to use CHOOSE function<br>This is basically like &#8220;SELECT CASE&#8221; statement, but more limited<\/p>\n\n\n\n<p>So, in few words, you can derive the flow of formulas to go to function1, function2, function3, or function4 based on an integer.<br>More like a nested IF, it can actually replaces a nested IF if you can, use it, it is faster, and most important, easier to maintain.<\/p>\n\n\n\n<p>If Index_Num = 1, the first Value (Value1) will be executed<br>If Index_num = 2, the Value2 will be executed<br>If 3, then Value3<br>And so on &#8230;<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2020\/02\/Capture_2020-01-14-16-45-22-1024x790.png\" alt=\"\" data-id=\"1599\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1599\" class=\"wp-image-1599\"\/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2020\/02\/Capture_2020-01-14-16-47-07-671x1024.png\" alt=\"\" data-id=\"1600\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1600\" class=\"wp-image-1600\"\/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2020\/02\/Capture_2020-01-14-16-47-17-671x1024.png\" alt=\"\" data-id=\"1601\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1601\" class=\"wp-image-1601\"\/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2020\/02\/Choose1.jpg\" alt=\"\" data-id=\"1602\" data-link=\"http:\/\/xlfxs.com\/?attachment_id=1602\" class=\"wp-image-1602\"\/><\/figure><\/li><\/ul><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you are like me, then you must have needed to use CHOOSE functionThis is basically like &#8220;SELECT CASE&#8221; statement, but more limited So, in few words, you can derive the flow of formulas to go to function1, function2, function3, or function4 based on an integer.More like a nested IF, it can actually replaces a&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"https:\/\/xlfxs.com\/?p=1543\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;CHOOSE &#8211; tree of decisions&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1597,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,3,80],"tags":[106,146,147,167],"class_list":["post-1543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-choose","category-formulas","category-if","tag-choose","tag-identifier","tag-if","tag-nested"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1543"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1543\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1597"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}