Skip to content

[Proposal] Exact number matching #99

Open

Description

@blowfishpro

We can currently compare numbers based on greater than or less than, but no way to compare equal to (or gteq/lteq).

The = character is off limits since KSP uses it to parse. ≈ is available but hard to type on Windows (OSX makes it easy with modifiers, not sure about Linux). ~ would also work but is used elsewhere in MM making this possibly confusing. Any other characters make sense?

One option for absolute equality would be to look for a sign at the beginning and if present, use that to check absolute equality (e.g. @PART:HAS[#mass[+0.2]])

Activity

  1. sarbian commented on Feb 20, 2018

    @sarbian
    Owner

    I like the sign idea but it may be confusing for users.
    We nearly used all the ASCII operator that would be safe to use with KSP so at that point we ll have to use obscure operators that needs ALT codes.
    ":" may do as an operator. Or ≈ and we explain how to type it (ALT 247). Or ≡ (ALT 240)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions