Echo Option Value Based On WordPress User Role

Something like this?

  if(current_user_can('administrator')){
    echo '<option value="[email protected]">[email protected]</option>';
  }elseif(current_user_can('subscriber')){
    echo '<option value="[email protected]">[email protected]</option>';
  }

Maybe this should be wrapped in a user logged in check like this:

if(is_user_logged_in()){
  if(current_user_can('administrator')){
    echo '<option value="[email protected]">[email protected]</option>';
  }elseif(current_user_can('subscriber')){
    echo '<option value="[email protected]">[email protected]</option>';
  }
}