{"id":236,"date":"2025-01-17T09:29:11","date_gmt":"2025-01-17T09:29:11","guid":{"rendered":"https:\/\/www.portalsunited.com:443\/?post_type=docs&#038;p=236"},"modified":"2025-01-17T09:29:11","modified_gmt":"2025-01-17T09:29:11","password":"","slug":"world-builder-flow","status":"publish","type":"docs","link":"https:\/\/www.portalsunited.com:443\/docs\/world-builder-flow\/","title":{"rendered":"World Builder &#8211; Flow"},"content":{"rendered":"\n<p>To control in what order a number of functions are run, the flow inputs and outputs are used. In the image below, the white lines which begin with arrows instead of round connectors are flow inputs and outputs. You can see that the flow starts with an Update node which enters an Audio Player node. This stars the audio player.<\/p>\n\n\n\n<p>From the Audio Player node, control flows to the If Node. &#8220;If&#8221; will use the &#8220;true&#8221; output flow if the audio player is playing and the &#8220;false&#8221; output flow if the audio player has finished playing.<\/p>\n\n\n\n<p>The Light Bulb object in the scene will be visible (light up) while audio is playing and disappear when audio has stopped.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"947\" height=\"544\" src=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-1.png\" alt=\"\" class=\"wp-image-567\" srcset=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-1.png 947w, https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-1-300x172.png 300w, https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-1-768x441.png 768w\" sizes=\"auto, (max-width: 947px) 100vw, 947px\" \/><\/figure>\n\n\n\n<p>When the flow is passed to the Light Bulb object, the connected values at the input will be sent to the corresponding object. However, to read the output of any Node, the node does not need any flow passed to it. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"333\" src=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-3.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-3.png 727w, https:\/\/www.portalsunited.com:443\/wp-content\/uploads\/2024\/09\/image-3-300x137.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/figure>\n\n\n\n<p>The Distance Node, for instance, has no flow inputs or outputs, because the distance calculation is made whenever the &#8220;distance&#8221; output is read. The distance output is read by the Compare Node which in turn is read by the if Node. The If Node will follow the &#8220;true&#8221; output flow whenever the distance between the &#8220;a&#8221; and &#8220;b&#8221; inputs is greater than 12.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To control in what order a number of functions are run, the flow inputs and outputs are used. In the image below, the white lines which begin with arrows instead of round connectors are flow inputs and outputs. You can see that the flow starts with an Update node which enters an Audio Player node&#8230;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[23],"doc_tag":[],"class_list":["post-236","docs","type-docs","status-publish","hentry","doc_category-world-builder-logic-editor"],"year_month":"2025-08","word_count":221,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"holger.kuerten","author_nicename":"holger-kuerten","author_url":"https:\/\/www.portalsunited.com:443\/author\/holger-kuerten\/"},"doc_category_info":[{"term_name":"World Builder - Logic Editor","term_url":"https:\/\/www.portalsunited.com:443\/docs-category\/world-builder-logic-editor\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":2,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/236\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/docs\/236\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_category?post=236"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.portalsunited.com:443\/wp-json\/wp\/v2\/doc_tag?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}