Setting Strings Conditionally

string x = someBoolean ? “Value for string if someBoolean is true” : “Value for string if someBoolean is false”;
Why wasn’t I taught this earlier?