sarbian / ModuleManager

177 stars 96 forks source link

[Proposal] Boolean matching #100

Open blowfishpro opened 6 years ago

blowfishpro commented 6 years ago

C# boolean parsing is case-insensitive, so boolean values in configs can often end up with different cases. This is difficult to account for in patches. It would be convenient to have a way to check for boolean equality, e.g. something like NODE:HAS[#someFlag[!true]]. Not sure if ! is the best character to use here since (1) it's used elsewhere in MM and (2) In programming it usually inverts whatever proceeds it, so open to other suggestions.

Alternately, there could be some way of doing case-insensitive comparison which would also solve this issue.

sarbian commented 6 years ago

"?" is still free I think ? I guess it would work for a boolean test