How do you write a code for the concept below? Maybe switch, if else or something? Different coding approaches are welcome.
Concept:
if ($custom_field == 'basic-members') {
send_to_url('/member/group1/index.php');
}
if ($custom_field == 'bronze-members') {
[then go to] ('/subscriber/index.php');
}
if ($custom_field == 'silver-members') {
[then go to] ('/subscriber/index.php');
}
Thanks in advance.