RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Flowgraph Base ModuleFlowgraph Base NodeFlowgraph Base State NodeFlowgraph Node BuilderFlowgraph GraphFlowgraph Group HelperFlowgraph LinkFlowgraph ManagerNew Node TemplateFlowgraph PinFlowgraph States ManagerFlowgraph UtilsFlowgraph Variable Storage
And (Flowgraph Node)Boolean Expression (Flowgraph Node)Branch (Flowgraph Node)Bundle (Flowgraph Node)Chainflow Branch (Flowgraph Node)Compare (Flowgraph Node)Edge Detector (Flowgraph Node)Flow Switch (Flowgraph Node)Frame Delay (Flowgraph Node)Once (Flowgraph Node)Flow Interval / Rate Limit (Flowgraph Node)Select (Flowgraph Node)Sequencer (Flowgraph Node)Switch Case (Flowgraph Node)Timed Trigger (Flowgraph Node)Wait (Flowgraph Node)XOR (Flowgraph Node)

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE Extensionsflowgraphnodeslogic

Branch (Flowgraph Node)

- **Node Name:** `Branch`

Overview

  • Node Name: Branch
  • Category: logic
  • File: extensions/flowgraph/nodes/logic/branch.lua

Routes flow to either the True or False output pin based on a boolean condition. The fundamental if/else construct for flowgraphs.

Pin Schema

Input Pins

PinTypeDescription
flowflowInflow for this node
conditionboolThe condition to be checked against

Output Pins

PinTypeDescription
flowflowPassthrough outflow (hidden)
TrueflowOutflow when the condition is true
FalseflowOutflow when the condition is false

Behavior

  • work() - When flow is active, passes flow through and routes to True or False based on the condition value. When no flow, all outputs are false.

How It Works

This is the standard conditional branching node. When flow arrives and the condition is truthy, True outputs flow and False is suppressed (and vice versa). The hidden flow pin always passes through the input flow regardless of condition.

Example Usage

-- In a flowgraph:
-- Connect a boolean check (e.g., "is player near?") to the condition pin
-- Connect True to the "open door" action
-- Connect False to the "keep door closed" action

-- Equivalent Lua logic:
if condition then
  -- True branch
else
  -- False branch
end

See Also

  • And (Flowgraph Node) - Related reference
  • Boolean Expression (Flowgraph Node) - Related reference
  • Bundle (Flowgraph Node) - Related reference
  • FlowGraph Guide - Guide

Boolean Expression (Flowgraph Node)

- **Node Name:** `Boolean Expression`

Bundle (Flowgraph Node)

- **Node Name:** `Bundle`

On this page

OverviewPin SchemaInput PinsOutput PinsBehaviorHow It WorksExample UsageSee Also