Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

(request) boolean NOT operator #241

Open Dunbaratu opened 10 years ago

Dunbaratu commented 10 years ago

At the moment it's very hard to do the following:

myboolean off.
if myboolean is false { something. }.

Because you can't compare it with a number with =0, and there's no constant for FALSE to compare it to, and there's no NOT or (!) operator.

Because of this I've been finding myself avoiding booleans just because integers work as booleans and with an integer I can at least say "= 0" as an ad-hoc "not" operator.