// result will be 3 if authorName?.Length is null var result = authorName?.Length ?? 3; Console.WriteLine(result);