Поток управления / Условные операторы / Операторы if/else

using System;

int GetLatitude() {
    return 90;
}

var latitude = GetLatitude();
string location;
if (latitude == 0) {
    location = "Equator";
else if (latitude == 90) {
    location = "north Pole";
else if (latitude == -90) {
    location = "south Pole";
else {
    location = "not at the Equator or Pole";
}

Console.WriteLine(location);