Settings Text String as Variable in If Statement

snprintf (msg, 75, "up");
client.publish(digitalRead(switchPin0) ? "server1" : "server2", msg);