<div dir="ltr"><div>Hello,</div><div><br></div><div>Is there any way to use Regex or 'OR/AND' operators in the switch/case statements?</div><div>I've tried the following syntax but it's not working, are there any other ways to do this?</div><div><br></div><div>

<div style="color:rgb(171,178,191);background-color:rgb(40,44,52);font-family:"Fira Code",Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(198,120,221)">switch</span><span style="color:rgb(171,178,191)">($dlg_var(</span><span style="color:rgb(209,154,102)">ISP</span><span style="color:rgb(171,178,191)">)) {</span></div><div><span style="color:rgb(171,178,191)">    </span><span style="color:rgb(198,120,221)">case</span><span style="color:rgb(171,178,191)"> </span><span style="color:rgb(152,195,121)">"TRUNK1|TRUNK2"</span><span style="color:rgb(171,178,191)">:</span></div><div><span style="color:rgb(171,178,191)">}</span></div></div>

</div><div><br></div><div>Thank you.<br></div><div><br></div><div><br></div></div>