Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the "More Than" Math command?

In my plugin I need to check if there is more then one of something, and <1 does not work...

What is it..?

1 answer

✓ Accepted answer

This is how you compare number values:

  • < = smaller than
  • > = bigger than
  • <= = smaller than or equal to
  • >= = bigger than or equal to

So:

local children = game.Workspace:GetChildren()

if #children > 1 then
	-- code
end

Hope I helped :)

1 comment

0

Thank you, and Yes you did.

This discussion is preserved as it was. New answers, comments, and votes are closed.