Revision as of 03:17, 12 October 2013 by Veggieman001 (talk | contribs)

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
  • Evaluating numbers/letters
  • Comparing different variables (eg. 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.