The correct title of this article is () < (). The Scratch Wiki uses this different title because of technical restrictions.
() < ()
2.0 () is Less Than ().png
Category Operators
Type Boolean

The () < () block is an Operators block and a Boolean block. The block checks if the first value is less than the second value. If it is less, the block returns true; if not, it returns false.

This block works with letters too, as well as numbers. In Scratch, letters at the top of the alphabet (e.g. a, b, c) are worth less than letters at the end (e.g. x, y, z). In Scratch 1.3 and previous versions, it only accepted numbers.

Example Uses

Document.png Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (Date?)

If a group must be arranged in size, this block can easily do the job.

Some common uses for the () < () block are below:

  • Arranging a set of numbers/letters
if <<(score) > (item (1 v) of [Top Scores v])> and <(score) > (item (2 v) of [Top Scores v])>> then
insert (score) at (2 v) of [list v]
  • Evaluating numbers/letters
  • Comparing different variables (e.g. comparing two characters' health in a game)


Main article: List of Block Workarounds

The block can be replicated with the following code:

<not <<(a) > (b)> or <(a) = (b)>>>

See Also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.