I've seen this somewhere, sometime before but I can't remember how it's used and I can't find anything about it online (Probably because I don't know what to search for). So please help me understand how to use this and also if you link a reference on the official documentation that would be great.
Boolean someVal = true;
String someString = someVal .? 'a value'
// results in someString = 'a value'
Boolean someVal = false;
String someString = someVal .? 'a value'
// results in someString = null
So it looks similar or maybe exactly like this code and I think it returns a null if the condition isn't true and returns 'a value' if the condition is true. Please let me know in the comments if I need to add clarification. Thanks!