Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] Exact number matching #99

Open
blowfishpro opened this issue Feb 20, 2018 · 1 comment
Open

[Proposal] Exact number matching #99

blowfishpro opened this issue Feb 20, 2018 · 1 comment

Comments

@blowfishpro
Copy link
Collaborator

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]])

@sarbian
Copy link
Owner

sarbian commented Feb 20, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants