<head>
<title></title>
</head>
<body>
<div class="userStyles" style=" font-family: Arial; font-size: 12pt; color: #000000;">
<p>Another option is to simply turn it into a sequential series of function calls.</p>
<p>This avoids the nesting though it's more verbose than the <b>try</b> or <b>with</b> variants.</p>
<div>
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Fira Code","Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap">
<div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"Fira Code","Droid Sans Mono","monospace",monospace,"Droid Sans Fallback";font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap">
<div><span style="color:rgb(220,220,170)">get_nas_from_conf</span><span style="color:rgb(212,212,212)">() -></span></div>
<div><span style="color:rgb(197,134,192)">case</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(220,220,170)">get_radius_host</span><span style="color:rgb(212,212,212)">() </span><span style="color:rgb(197,134,192)">of</span></div>
<div><span style="color:rgb(212,212,212)">{ok, </span><span style="color:rgb(156,220,254)">Server</span><span style="color:rgb(212,212,212)">} -> step2(Server)</span></div>
<div><span style="color:rgb(212,212,212)">E -> E</span></div>
<div><span style="color:rgb(212,212,212)">end.</span></div>
<div> </div>
<div><span style="color:rgb(212,212,212)">step2(Server) -></span></div>
<div><span style="color:rgb(197,134,192)">case</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(220,220,170)">get_radius_port</span><span style="color:rgb(212,212,212)">() </span><span style="color:rgb(197,134,192)">of</span></div>
<div><span style="color:rgb(212,212,212)">{ok, </span><span style="color:rgb(156,220,254)">Port</span><span style="color:rgb(212,212,212)">} -> step3(Server, Port)</span></div>
<div><span style="color:rgb(212,212,212)">E -> E</span></div>
<div><span style="color:rgb(212,212,212)">end.</span></div>
<div> </div>
<div><span style="color:rgb(212,212,212)">step3(</span><span style="color:rgb(212,212,212)"><span style="color:rgb(212,212,212)">Server, Port</span>) -></span></div>
<div><span style="color:rgb(197,134,192)">case</span><span style="color:rgb(212,212,212)"> </span><span style="color:rgb(220,220,170)">get_radius_secret</span><span style="color:rgb(212,212,212)">() </span><span style="color:rgb(197,134,192)">of</span></div>
<div><span style="color:rgb(212,212,212)">{ok, </span><span style="color:rgb(156,220,254)">Secret</span><span style="color:rgb(212,212,212)">} -> {</span><span style="color:rgb(156,220,254)">Server</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(156,220,254)">Port</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(156,220,254)">Secret</span><span style="color:rgb(212,212,212)">};</span></div>
<div><span style="color:rgb(156,220,254)">E</span><span style="color:rgb(212,212,212)"> -> </span><span style="color:rgb(156,220,254)">E</span></div>
<div><span style="color:rgb(197,134,192)">end</span><span style="color:rgb(212,212,212)">.</span></div>
</div>
</div>
</div>
</div>
</body>