79082120

Date: 2024-10-12 23:20:02
Score: 2.5
Natty:
Report link

If using concatenation remember to protect the ?? with brackets, otherwise the concatenation will happen first and then test the concatenated string for null

print "Hello " . null ?? "Anonymous";

-- "Hello"

print "Hello " . (null ?? "Anonymous");

-- "Hello Anonymous"

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Pure Opal