{"id":690,"date":"2026-05-18T21:06:15","date_gmt":"2026-05-18T13:06:15","guid":{"rendered":"https:\/\/junai.ai\/blog\/n8n-if-switch-12\/"},"modified":"2026-05-18T21:36:51","modified_gmt":"2026-05-18T13:36:51","slug":"n8n-if-switch-12","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/n8n-if-switch-12\/","title":{"rendered":"n8n IF \u00b7 Switch \uc870\uac74 \ubd84\uae30 (Ch.12)"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 707 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>:root{--p:#1e40af;--a:#3b82f6;--bg:#fafafa;--t:#1e293b;--tm:#64748b;--hs:#0f172a;--he:#0e7490}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,'Noto Sans KR',sans-serif;font-size:17px;line-height:1.75;color:var(--t);background:var(--bg);word-break:keep-all}.container{max-width:760px;margin:0 auto;padding:0 24px 80px}.hero{background:linear-gradient(135deg,var(--hs),var(--he));color:#fff;padding:80px 24px 60px;text-align:center}.hero .eyebrow{display:inline-block;font-size:14px;color:#22d3ee;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px}.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800}.hero p{color:#a5f3fc;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6}.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block}article{padding-top:48px}article h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--a);line-height:1.4}article p{margin:16px 0}article strong{color:var(--p);font-weight:700}article code{background:#f1f5f9;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,monospace;font-size:14px;color:#4338ca}.databox{background:#eff6ff;border-left:4px solid var(--a);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px}.warnbox{background:linear-gradient(135deg,#fef3c7,#fde68a);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px}.cmd{background:#0f172a;color:#e2e8f0;padding:14px 18px;border-radius:8px;font-family:'SF Mono',Menlo,monospace;font-size:14px;overflow-x:auto;margin:14px 0;line-height:1.55;white-space:pre}.cmd .c{color:#fbbf24}.cmd .p{color:#64748b}.screenshot{margin:24px 0}.screenshot img{width:100%;height:auto;border:1px solid #e2e8f0;border-radius:8px;display:block}.screenshot figcaption{margin-top:10px;font-size:14.5px;color:var(--tm);text-align:center}.cta{background:#0f172a;color:#fff;padding:32px;border-radius:12px;margin:48px 0 0;text-align:center}.cta h3{color:#fff;margin:0 0 10px;font-size:20px}.cta a{display:inline-block;background:var(--a);color:#fff;padding:12px 26px;border-radius:8px;text-decoration:none;font-weight:700}.tablewrap{overflow-x:auto;margin:22px 0}table{width:100%;border-collapse:collapse;font-size:15px;background:#fff}th,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}th{background:#f1f5f9;font-weight:700}td:first-child,th:first-child{font-weight:700}@media(max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto}.tablewrap thead{display:none}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px}.tablewrap td:first-child{background:#f1f5f9;font-weight:800}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--p)}}@media(max-width:480px){.hero h1{font-size:26px}body{font-size:16px}article h2{font-size:22px}}<\/style>\n<header class=\"hero\">\n<span class=\"eyebrow\">n8n \ud55c\uad6d\uc5b4 \uad50\uc7ac \u00b7 Ch.12<\/span>\n<h1>IF \u00b7 Switch \uc870\uac74 \ubd84\uae30<\/h1>\n<p>\ubaa8\ub4e0 \uc6cc\ud06c\ud50c\ub85c\ub294 \uacb0\uad6d &#8220;\uc870\uac74 \ub530\ub77c \ub2e4\ub974\uac8c \ucc98\ub9ac&#8221; \uac00 \ud544\uc694\ud569\ub2c8\ub2e4. n8n \uc758 \ubd84\uae30\ub294 \ub450 \uc885\ub958 \u2014 \ub2e8\uc21c \uc591\uc790\ud0dd\uc77c(IF), \ub2e4\uc911 \ubd84\uae30(Switch).<\/p>\n<img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-12.jpg\" alt=\"6\uac01\ud615 \ubd84\uae30 \ub2e4\uc774\uc5b4\uadf8\ub7a8\">\n<\/header><div class=\"container\"><article>\n\n<p>Ch.11 \uc758 RSS \uc6cc\ud06c\ud50c\ub85c\uc5d0\uc11c &#8220;\uc5b4\uc81c \uc774\ud6c4 \uae00\ub9cc&#8221; \uac19\uc740 \uc870\uac74\uc774 \ub4f1\uc7a5\ud588\uc8e0. \uadf8\uac8c IF \ub178\ub4dc\uc758 \uc601\uc5ed. \ub354 \ubcf5\uc7a1\ud55c \ucf00\uc774\uc2a4 \u2014 VIP\/\uc77c\ubc18\/\uc2e0\uaddc \ud68c\uc6d0\ubcc4\ub85c \ub2e4\ub978 \uba54\uc2dc\uc9c0 \u2014 \ub294 Switch \uc758 \uc601\uc5ed.<\/p>\n\n<h2>IF \u2014 \ub458\ub85c \uac08\ub77c\uc9c0\ub294 \uac00\uc7a5 \ub2e8\uc21c\ud55c \ubd84\uae30<\/h2>\n\n<figure class=\"screenshot\"><img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/01-node-settings-3.png\" alt=\"IF \ub178\ub4dc \uac80\uc0c9 \uacb0\uacfc\"><figcaption>\uc774\uc804 \ub178\ub4dc + \u2192 &#8220;if&#8221; \uac80\uc0c9 \u2192 IF \ub178\ub4dc \ud074\ub9ad. \uc870\uac74 \ube4c\ub354 UI \uac00 \uc5f4\ub9bc.<\/figcaption><\/figure>\n\n<p>IF \ub178\ub4dc \ucd9c\ub825\uc740 \ud56d\uc0c1 \ub450 \uac08\ub798 \u2014 <strong>true<\/strong> \uc640 <strong>false<\/strong>. \uac01 \uac08\ub798\uc5d0 \ub2e4\ub978 \ud6c4\uc18d \ub178\ub4dc\ub97c \ubd99\uc785\ub2c8\ub2e4.<\/p>\n\n<div class=\"cmd\"><span class=\"c\">IF<\/span> \ub178\ub4dc\n  Conditions (AND\/OR \uc120\ud0dd)\n    Value 1: <span class=\"c\">={{ $json.amount }}<\/span>\n    Operation: <span class=\"c\">larger<\/span>\n    Value 2: <span class=\"c\">10000<\/span><\/div>\n\n<p>\uc774 IF \ub178\ub4dc\ub294 &#8220;\uae08\uc561\uc774 10,000 \ubcf4\ub2e4 \ud06c\uba74 true&#8221; \ubd84\uae30. true \ucd9c\ub825\uc73c\ub85c VIP \ucc98\ub9ac, false \ub85c \uc77c\ubc18 \ucc98\ub9ac.<\/p>\n\n<h2>\ud754\ud788 \uc4f0\ub294 \uc870\uac74 8\uac00\uc9c0<\/h2>\n\n<div class=\"tablewrap\"><table><thead><tr><th>Operation<\/th><th>\uc758\ubbf8<\/th><th>\uc608<\/th><\/tr><\/thead><tbody>\n<tr><td>equal<\/td><td data-label=\"\uc758\ubbf8\">\uc815\ud655\ud788 \uac19\uc74c<\/td><td data-label=\"\uc608\">status = &#8220;active&#8221;<\/td><\/tr>\n<tr><td>contains<\/td><td data-label=\"\uc758\ubbf8\">\ubb38\uc790\uc5f4 \ud3ec\ud568<\/td><td data-label=\"\uc608\">email contains &#8220;@gmail&#8221;<\/td><\/tr>\n<tr><td>starts with<\/td><td data-label=\"\uc758\ubbf8\">\uc2dc\uc791 \uae00\uc790<\/td><td data-label=\"\uc608\">phone starts with &#8220;010&#8221;<\/td><\/tr>\n<tr><td>larger \/ smaller<\/td><td data-label=\"\uc758\ubbf8\">\ud06c\ub2e4 \/ \uc791\ub2e4<\/td><td data-label=\"\uc608\">amount > 10000<\/td><\/tr>\n<tr><td>is empty<\/td><td data-label=\"\uc758\ubbf8\">\ube48 \uac12<\/td><td data-label=\"\uc608\">email is empty<\/td><\/tr>\n<tr><td>regex<\/td><td data-label=\"\uc758\ubbf8\">\uc815\uaddc\uc2dd \ub9e4\uce6d<\/td><td data-label=\"\uc608\">id matches \/^USR-\\d+$\/<\/td><\/tr>\n<tr><td>before \/ after<\/td><td data-label=\"\uc758\ubbf8\">\ub0a0\uc9dc \ube44\uad50<\/td><td data-label=\"\uc608\">createdAt before $now.minus({days:7})<\/td><\/tr>\n<tr><td>length larger<\/td><td data-label=\"\uc758\ubbf8\">\ubc30\uc5f4\u00b7\ubb38\uc790\uc5f4 \uae38\uc774<\/td><td data-label=\"\uc608\">items.length > 5<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n<h2>\uc5ec\ub7ec \uc870\uac74 \ubb36\uae30 \u2014 AND \/ OR<\/h2>\n\n<p>\ud55c IF \ub178\ub4dc\uc5d0 \uc870\uac74 \uc5ec\ub7ec \uac1c \ucd94\uac00 \uac00\ub2a5. \ubb36\uc74c \ubaa8\ub4dc \uc120\ud0dd:<\/p>\n\n<div class=\"databox\"><strong>AND<\/strong> \u2014 \ubaa8\ub4e0 \uc870\uac74 \ub9cc\uc871 \uc2dc true (\uc608: <code>amount > 10000 AND country = \"KR\"<\/code>)<br><strong>OR<\/strong> \u2014 \ud558\ub098\ub77c\ub3c4 \ub9cc\uc871 \uc2dc true (\uc608: <code>role = \"admin\" OR plan = \"enterprise\"<\/code>)<\/div>\n\n<p>\ubcf5\uc7a1\ud574\uc9c0\uba74 IF \uc548\uc5d0 \ub610 IF \ub97c \uc911\ucca9\ud558\uae30\ubcf4\ub2e8 <strong>Switch<\/strong> \uac00 \uae54\ub054.<\/p>\n\n<h2>Switch \u2014 \ub2e4\uc911 \ubd84\uae30 (3\uac00\uc9c0 \uc774\uc0c1)<\/h2>\n\n<p>\ud68c\uc6d0 \ub4f1\uae09 4\uac1c (VIP\/Pro\/Free\/Trial) \uac01\uac01 \ub2e4\ub978 \ucc98\ub9ac? IF \uc911\ucca9\uc740 \uc9c0\uc800\ubd84. Switch \ud55c \ub178\ub4dc\ub85c \uae54\ub054.<\/p>\n\n<div class=\"cmd\"><span class=\"c\">Switch<\/span> \ub178\ub4dc\n  Mode: Rules\n  Output 0 (VIP):  <span class=\"c\">$json.plan = &#8220;vip&#8221;<\/span>\n  Output 1 (Pro):  <span class=\"c\">$json.plan = &#8220;pro&#8221;<\/span>\n  Output 2 (Free): <span class=\"c\">$json.plan = &#8220;free&#8221;<\/span>\n  Output 3 (Trial): <span class=\"c\">$json.plan = &#8220;trial&#8221;<\/span>\n  Fallback Output: (\uc5b4\ub514\uc5d0\ub3c4 \ub9e4\uce6d \uc548 \ub418\uba74)<\/div>\n\n<p>\uac01 Output \uc5d0 \ub2e4\ub978 \ub178\ub4dc \uc5f0\uacb0. \uc608: VIP \u2192 \uc804\ub2f4 \ub9e4\ub2c8\uc800 Slack, Pro \u2192 \uc790\ub3d9 \uba54\uc77c, Free \u2192 \ub9c8\ucf00\ud305 \uba54\uc77c, Trial \u2192 14\uc77c \uce74\uc6b4\ud2b8\ub2e4\uc6b4.<\/p>\n\n<h2>\uc2e4\uc218 \ud328\ud134 + \ub514\ubc84\uae45<\/h2>\n\n<div class=\"warnbox\"><strong>\uac00\uc7a5 \ud754\ud55c \uc2e4\uc218 1 \u2014 \ud0c0\uc785 \ubd88\uc77c\uce58<\/strong><br>API \uac00 \ubcf4\ub0b8 <code>\"10000\"<\/code>(\ubb38\uc790\uc5f4) \uc778\ub370 IF \uc5d0\uc11c <code>larger 10000<\/code>(\uc22b\uc790) \ube44\uad50 \u2192 \ud56d\uc0c1 false. <code>={{ Number($json.amount) }}<\/code> \ub85c \uac15\uc81c \ubcc0\ud658 \ub610\ub294 IF Operation \uc744 &#8220;equal&#8221; \ub85c \ubcc0\uacbd.<\/div>\n\n<div class=\"warnbox\"><strong>\ud754\ud55c \uc2e4\uc218 2 \u2014 Fallback \uc548 \ub9cc\ub4e6<\/strong><br>Switch \uc5d0 &#8220;\uc5b4\ub514\uc5d0\ub3c4 \uc548 \ub9de\uc73c\uba74&#8221; Fallback \ucd9c\ub825 \ubbf8\uc124\uc815 \u2192 \uadf8 item \uc740 \uadf8\ub0e5 \uc0ac\ub77c\uc9d0. \uc6cc\ud06c\ud50c\ub85c \uacb0\uacfc\uac00 \ube60\uc9c4 \ucc44 \ub05d\ub0a8. \ud56d\uc0c1 Fallback \ucd9c\ub825 \uc5f0\uacb0 \uad8c\uc7a5 (\uc2e4\ud328 \uc54c\ub9bc \ub4f1).<\/div>\n\n<p><strong>\uc2e4\uc804 \u2014 \ub2e4\uc911 \ucc44\ub110 \uc54c\ub9bc \ub77c\uc6b0\ud305<\/strong><\/p>\n\n<p>\uc2e4\ubb34\uc5d0\uc11c \uac00\uc7a5 \uc790\uc8fc \ub9cc\ub098\ub294 Switch \ud328\ud134 \u2014 \uc774\ubca4\ud2b8 \ud0c0\uc785\ubcc4\ub85c \ub2e4\ub978 \ucc44\ub110\uc5d0 \uc54c\ub9bc. \uacb0\uc81c \uc54c\ub9bc\uc740 \uc601\uc5c5 Slack, \uc5d0\ub7ec\ub294 \uac1c\ubc1c Slack, \uac00\uc785\uc740 \uadf8\ub85c\uc2a4 Slack \uc73c\ub85c.<\/p>\n\n<div class=\"cmd\"><span class=\"c\">Switch<\/span> \ub178\ub4dc\n  Output 0: event = &#8220;payment&#8221;  \u2192 \uc601\uc5c5 Slack \ucc44\ub110\n  Output 1: event = &#8220;error&#8221;    \u2192 \uac1c\ubc1c Slack \ucc44\ub110\n  Output 2: event = &#8220;signup&#8221;   \u2192 \uadf8\ub85c\uc2a4 Slack \ucc44\ub110\n  Fallback: \u2192 \uae30\ud0c0 Slack \ucc44\ub110 (\ubd84\ub958 \uc548 \ub41c \uac83 \ubaa8\ub2c8\ud130\ub9c1)<\/div>\n\n<p>\uc774 \ud328\ud134 \ud558\ub098\ub85c \ud55c \uc6cc\ud06c\ud50c\ub85c \uc548\uc5d0\uc11c 3-4 \ucc44\ub110 \uc6b4\uc601. \uc6cc\ud06c\ud50c\ub85c\ub97c 4\uac1c \ub530\ub85c \ub9cc\ub4e4 \ud544\uc694 \uc5c6\uace0, \uc0c8 \uc774\ubca4\ud2b8 \ud0c0\uc785 \ucd94\uac00 \uc2dc Switch \uc5d0 Output \ud558\ub098 \ucd94\uac00\ub9cc \ud558\uba74 \ub428. \ud655\uc7a5\uc774 \uc26c\uc6cc\uc11c \uc6b4\uc601 \uc548\uc815\uc131 \u2191.<\/p>\n\n<p>\ub610 IF\/Switch \uc758 \ucd9c\ub825\uc740 \uc77c\ubc18 \ub370\uc774\ud130 \uadf8\ub300\ub85c \ud1b5\uacfc \u2014 \ubcc0\ud658\u00b7\uac00\uacf5\uc774 \uc77c\uc5b4\ub098\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ubd84\uae30 \ud6c4 \uac01 \uac08\ub798\uc758 Set \ub178\ub4dc\uc5d0\uc11c \ucc44\ub110\ubcc4 \uba54\uc2dc\uc9c0\ub97c \ub2e4\ub974\uac8c \uc870\ub9bd\ud558\ub294 \uac8c \uc77c\ubc18 \ud328\ud134.<\/p>\n\n<p>\ub2e4\uc74c Ch.13 \u2014 Code \ub178\ub4dc. IF\u00b7Switch \ub85c \ubd80\uc871\ud55c \ubcf5\uc7a1\ud55c \ub85c\uc9c1 (\uc815\uaddc\uc2dd \ubcc0\ud658, \ub2e4\ub2e8\uacc4 \uac00\uacf5) \uc744 JavaScript \ub85c \uc9c1\uc811 \uc791\uc131\ud558\ub294 \ud328\ud134.<\/p>\n\n<div class=\"cta\"><h3>n8n \ud55c\uad6d\uc5b4 \uad50\uc7ac \u00b7 Ch.12 \uc644\ub8cc<\/h3><p>\ub2e4\uc74c \ud3b8 \u2192 Ch.13 Code \ub178\ub4dc \u2014 JavaScript \uc9c1\uc811 \uc791\uc131<\/p><a href=\"https:\/\/junai.ai\/blog\/category\/n8n\/\">\uc804\uccb4 \uc2dc\ub9ac\uc988 \ubcf4\uae30<\/a><\/div>\n\n<\/article><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>n8n IF \u00b7 Switch \ub178\ub4dc\ub85c \uc6cc\ud06c\ud50c\ub85c \ud750\ub984 \ub458\u00b7\uc14b\u00b7\ub137\uc73c\ub85c \ubd84\uae30. \uc870\uac74 \ub9e4\uce6d \ud328\ud134 + \ub2e4\uc911 \ubd84\uae30 + \ub514\ubc84\uae45. \uae30\ucd08 Ch.12.<\/p>\n","protected":false},"author":1,"featured_media":707,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":1,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":722,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/690\/revisions\/722"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/707"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}