Route a command through scalar branch logic while replay shows the selected path.

Dispatcher Branch Panel

dispatcher_branch_panel.lua
local mode = 
local access = "ok"
local handled = ""

if mode == "refresh" then
  handled = "cache:" .. mode
elseif mode == "archive" then
  access = "review"
  handled = "queue:" .. mode
else
  handled = "handled:" .. mode
end

print("mode=" .. mode)
print("access=" .. access)
print(handled)
local mode = 
local access = "ok"
local handled = ""

if mode == "refresh" then
  handled = "cache:" .. mode
elseif mode == "archive" then
  access = "review"
  handled = "queue:" .. mode
else
  handled = "handled:" .. mode
end

print("mode=" .. mode)
print("access=" .. access)
print(handled)
local mode = 
local access = "ok"
local handled = ""

if mode == "refresh" then
  handled = "cache:" .. mode
elseif mode == "archive" then
  access = "review"
  handled = "queue:" .. mode
else
  handled = "handled:" .. mode
end

print("mode=" .. mode)
print("access=" .. access)
print(handled)
dispatcher branch Branch-based dispatch avoids stored function values and keeps Lua replay scalar.