- Home /
Question by
justaskin324 · Jan 28, 2015 at 06:25 AM ·
javascriptbooleanfalsetrue
Boolean problem.
I know that a boolean is true or false but what if I don't want it to be true or false? Is there anything I can do to make this work because I have tried setting the boolean to null but its not allowed.
Comment
If you want a third (or more) value, then it's not a boolean.
I think you're better off defining your own type than using a nullable boolean, and would suggest doing some reading on multi-valued or fuzzy logic to prepare you for potential issues.
Your answer
Follow this Question
Related Questions
scripting is not working for words "true" & "false" 1 Answer
boolean issue 1 Answer
Boolean values not behaving as expected. Please Help?! 0 Answers
Engine Only Returns Responses for False 2 Answers
Boolean problem!! 2 Answers