---
# System prepended metadata

title: Code Branching Reduce

---

# Code Branching Reduce


```
# Problem
if do1  {
  if doThat {
      for looop
}


# Solution #1

if do1  {
   ComplexDO(...)
}



if !do1 {
	return
}

if !doThat {
	return
}

for loop

# Solution #2

isCasesAlright := do1 && doThat

if isCasesAlright {
  for loop
}

``