VerseIsland
Feed Learn Leaderboard Guides Explore Search Docs Verse Library
Sign in
Feed Learn Leaderboard Guides Explore Search Docs Verse Library
Fortnite › Verse Language · Up to Fortnite · Verse Language · 26 of 570 in Verse Language
Browse Fortnite

Comparable in Verse

The comparable type is used to compare values of this type to other values of the same type.

The = and <> operators make use of this type to define their signatures.

|  |  |
| --- | --- |
|  | operator'='(:t, :comparable where t:subtype(comparable)):t |
|  | operator'<>'(:t, :comparable where t:subtype(comparable)):t |

operator'='(:t, :comparable where t:subtype(comparable)):t operator'<>'(:t, :comparable where t:subtype(comparable)):t

Copy full snippet(2 lines long)

Each of these functions is defined as taking a first argument that is an arbitrary subtype of comparable and a second argument that is also an arbitrary subtype, and that returns the same type as the first argument.

The comparable type has many subtypes that you can use. These subtypes can be compared both with other values of the same type type, and other subtypes of comparable. These subtypes include:

  • int
  • logic
  • float
  • char
  • char32
  • array if all contained types are subtypes of comparable
  • option if all contained types are subtypes of comparable
  • tuple if all contained types are subtypes of comparable
  • map if all contained types are subtypes of comparable

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated Mar 8, 2026
    Keep exploring
    More in Verse Language · 26 of 570
    Prev
    common types in verse
    Next
    composite types in verse
    Browse all files in this folder (A–Z)
    Next up
    • The `comparable` type is used to compare [values
    Related topics
    • Comparable In Verse Verse Language
    • Verse Language Quick Reference Verse Language
    • Operator%28%29 2 Verse Language
    • Operator%28%29 4 Verse Language
    • operatorequals Materials/Vfx

    Related

    Open in graph →

    Linked docs

    • Verse Glossary

    Related topics

    • Comparable In Verse
    • Verse Language Quick Reference
    • Operator%28%29 2
    • Operator%28%29 4
    VerseIsland · an archipelago of Verse & UEFN knowledge
    Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.