I've come apon this syntax a few times in programming books and other open source programs I've been looking at.
return am == null ? "": (String) am.get();
or
return Level != 0 ? String.format("({0})", Level) : "";
What is this pattern called? I've tried searching for the value ? value : value;
type pattern hoping it would come up both here and on google, but so far no luck. I think I know what it's doing but I would love to know what to call it to learn more.