{"id":16931,"date":"2026-07-09T12:54:48","date_gmt":"2026-07-09T09:54:48","guid":{"rendered":"https:\/\/loquiz.com\/support\/?p=16931"},"modified":"2026-07-09T13:00:16","modified_gmt":"2026-07-09T10:00:16","slug":"when-then-block","status":"publish","type":"post","link":"https:\/\/loquiz.com\/support\/when-then-block\/","title":{"rendered":"When &#8230; Then Block"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>UI name in toolbox:<\/strong> <code>when ... then<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Definition:<\/strong> A WHEN-THEN block executes one or more actions the moment a connected condition becomes true.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What it does:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Monitors a Boolean condition continuously<\/li>\n\n\n\n<li>Executes all action statements in the <code>then<\/code> input when condition becomes true<\/li>\n\n\n\n<li>Actions execute in the order they appear<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to build it:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Drag the <code>when ... then<\/code> block from the Logic category<\/li>\n\n\n\n<li>Insert a Boolean condition into the <code>when<\/code> socket<\/li>\n\n\n\n<li>Insert action blocks into the <code>then<\/code> statement input<\/li>\n\n\n\n<li>Connect multiple actions vertically in the <code>then<\/code> section if needed<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Block structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>when<\/code> input: must accept a Boolean type condition<\/li>\n\n\n\n<li><code>then<\/code> input: accepts statement blocks (actions) sequentially<\/li>\n\n\n\n<li>Previous\/next connectors: can chain multiple <code>when ... then<\/code> blocks<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important note:<\/strong> This block has no else branch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example (Simple):<\/strong><br>Condition: <code>timer &gt; [0] h [10] min [0] s<\/code><br>Result: <code>open [task 5] for answering<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example (Chaining multiple actions):<\/strong><br>Condition: <code>[task 3] finished<\/code><br>Result:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>open [task 4] for answering<\/code><\/li>\n\n\n\n<li><code>show [task 4] on map<\/code><\/li>\n\n\n\n<li><code>finish<\/code><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">(All three actions execute in order when Task 3 finishes)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example (Edge Case &#8211; Multiple when-then blocks):<\/strong><br>Multiple WHEN-THEN blocks can monitor the same condition:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Block 1: When Task 3 finishes \u2192 Open Task 4<\/li>\n\n\n\n<li>Block 2: When Task 3 finishes \u2192 Show Task 4 on map<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Both blocks trigger independently when the condition is true.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Common mistakes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Expecting WHEN-THEN to execute only once (it re-evaluates continuously)<\/li>\n\n\n\n<li>Placing action blocks outside a WHEN-THEN block (then they execute at game start)<\/li>\n\n\n\n<li>Forgetting that condition must be Boolean type<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>UI name in toolbox: when &#8230; then Definition: A WHEN-THEN block executes one or more actions the moment a connected condition becomes true. What it does: How to build it: Block structure: Important note: This block has no else branch. Example (Simple):Condition: timer &gt; [0] h [10] min [0] sResult: open [task 5] for answering [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[150],"tags":[3821],"class_list":["post-16931","post","type-post","status-publish","format-standard","hentry","category-0-important-to-know","tag-blocks"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>When ... Then Block - Loquiz knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/loquiz.com\/support\/when-then-block\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"When ... Then Block - Loquiz knowledgebase\" \/>\n<meta property=\"og:description\" content=\"UI name in toolbox: when ... then Definition: A WHEN-THEN block executes one or more actions the moment a connected condition becomes true. What it does: How to build it: Block structure: Important note: This block has no else branch. Example (Simple):Condition: timer &gt; [0] h [10] min [0] sResult: open [task 5] for answering [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/loquiz.com\/support\/when-then-block\/\" \/>\n<meta property=\"og:site_name\" content=\"Loquiz knowledgebase\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-09T09:54:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-09T10:00:16+00:00\" \/>\n<meta name=\"author\" content=\"John Kapsalas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Kapsalas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/\"},\"author\":{\"name\":\"John Kapsalas\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/7cade19caf3be335a65cd17ce4425f55\"},\"headline\":\"When &#8230; Then Block\",\"datePublished\":\"2026-07-09T09:54:48+00:00\",\"dateModified\":\"2026-07-09T10:00:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/\"},\"wordCount\":201,\"keywords\":[\"blocks\"],\"articleSection\":[\"9.Important to know\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/\",\"name\":\"When ... Then Block - Loquiz knowledgebase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\"},\"datePublished\":\"2026-07-09T09:54:48+00:00\",\"dateModified\":\"2026-07-09T10:00:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/7cade19caf3be335a65cd17ce4425f55\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/when-then-block\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"When &#8230; Then Block\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/loquiz.com\\\/support\\\/\",\"name\":\"Loquiz knowledgebase\",\"description\":\"Helping you run awesome games\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/loquiz.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/loquiz.com\\\/support\\\/#\\\/schema\\\/person\\\/7cade19caf3be335a65cd17ce4425f55\",\"name\":\"John Kapsalas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g\",\"caption\":\"John Kapsalas\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"When ... Then Block - Loquiz knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/loquiz.com\/support\/when-then-block\/","og_locale":"en_US","og_type":"article","og_title":"When ... Then Block - Loquiz knowledgebase","og_description":"UI name in toolbox: when ... then Definition: A WHEN-THEN block executes one or more actions the moment a connected condition becomes true. What it does: How to build it: Block structure: Important note: This block has no else branch. Example (Simple):Condition: timer &gt; [0] h [10] min [0] sResult: open [task 5] for answering [&hellip;]","og_url":"https:\/\/loquiz.com\/support\/when-then-block\/","og_site_name":"Loquiz knowledgebase","article_published_time":"2026-07-09T09:54:48+00:00","article_modified_time":"2026-07-09T10:00:16+00:00","author":"John Kapsalas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Kapsalas","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/loquiz.com\/support\/when-then-block\/#article","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/when-then-block\/"},"author":{"name":"John Kapsalas","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/7cade19caf3be335a65cd17ce4425f55"},"headline":"When &#8230; Then Block","datePublished":"2026-07-09T09:54:48+00:00","dateModified":"2026-07-09T10:00:16+00:00","mainEntityOfPage":{"@id":"https:\/\/loquiz.com\/support\/when-then-block\/"},"wordCount":201,"keywords":["blocks"],"articleSection":["9.Important to know"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/loquiz.com\/support\/when-then-block\/","url":"https:\/\/loquiz.com\/support\/when-then-block\/","name":"When ... Then Block - Loquiz knowledgebase","isPartOf":{"@id":"https:\/\/loquiz.com\/support\/#website"},"datePublished":"2026-07-09T09:54:48+00:00","dateModified":"2026-07-09T10:00:16+00:00","author":{"@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/7cade19caf3be335a65cd17ce4425f55"},"breadcrumb":{"@id":"https:\/\/loquiz.com\/support\/when-then-block\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/loquiz.com\/support\/when-then-block\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/loquiz.com\/support\/when-then-block\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/loquiz.com\/support\/"},{"@type":"ListItem","position":2,"name":"When &#8230; Then Block"}]},{"@type":"WebSite","@id":"https:\/\/loquiz.com\/support\/#website","url":"https:\/\/loquiz.com\/support\/","name":"Loquiz knowledgebase","description":"Helping you run awesome games","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/loquiz.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Person","@id":"https:\/\/loquiz.com\/support\/#\/schema\/person\/7cade19caf3be335a65cd17ce4425f55","name":"John Kapsalas","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fd4296befbc97b8daf34e7837389ae34f8d6eec8beac7f259250de191caeb2e1?s=96&d=mm&r=g","caption":"John Kapsalas"}}]}},"_links":{"self":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/16931","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/comments?post=16931"}],"version-history":[{"count":2,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/16931\/revisions"}],"predecessor-version":[{"id":16937,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/posts\/16931\/revisions\/16937"}],"wp:attachment":[{"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/media?parent=16931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/categories?post=16931"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loquiz.com\/support\/wp-json\/wp\/v2\/tags?post=16931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}