Check if Number is 1 in as Little Code as Possible?

FYI, the solution used ternary operators, its a useful concept that you will for sure find yourself using alot

I’ve heard of ternary operators before it’s just my mind goes :exploding_head: when I try to figure out what’s happening there. I have a slight idea of how they work but I will read this, thank you.

1 Like
local function FormatPlurality(String, Number)
	if Number > 1 then String..="s" end
	return String
end