libram
    Preparing search index...

    Function sinceKolmafiaVersion

    • If KoLmafia's version is less than majorVersion.minorVersion, throws an exception. Otherwise, does nothing.

      This behaves like the since X.Y; statement in ASH.

      Parameters

      • majorVersion: number

        Major version number

      • minorVersion: number

        Minor version number

      Returns void

      Point versions are no longer released by KoLmafia

      If KoLmafia's major version is less than majorVersion, or if the major versions are equal but the minor version is less than minorVersion

      If either majorVersion or minorVersion are not integers

      // Throws if KoLmafia version is less than 20.7
      sinceKolmafiaVersion(20, 7);