Revision as of 04:26, 11 January 2020 by Jonathan50 (talk | contribs) (Change links and make other, minor changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The correct title of this article is () > () (block). The Scratch Wiki uses this different title because of technical restrictions.
() > ()
() > ()
Category Operators
Type Boolean

The () > () block is an Operators block and a Boolean block. The block reports true if the first value is more than the second value and false otherwise.

This block can compare both numbers and strings, which are ordered alphabetically. In Scratch 1.3 and previous versions, it only accepted numbers.

Example Uses

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

if <(score 1) > (score 2)> then
    say [Player 1 wins!]
else
    say [Player 2 wins!]
end
if <(score) > (☁ high score)> then
    set [☁ high score v] to (score)
end

Workaround

Main article: List of Block Workarounds

The block can be replicated with the following code:

<(b) < (a)>

See Also