Most voted "boolean" questions
A boolean expresses a value that can be either TRUE or FALSE(both case-insensitive). It is the type of data, of the simplest existing, occupying 1 bit of storage. It is used in logical operations such as conjunction, disjunction, exclusive disjunction, logical equivalence, and negation, which correspond to some of the operations of Boolean algebra, developed by mathematician George Boole.
Learn more…63 questions
Sort by count of
-
0
votes1
answer99
viewsWhat is the use of true or false?
I still don’t understand the right time to use them. I’m taking the course in EAD and don’t have much text or exercises about them.
-
0
votes0
answers29
viewsScript returning bool(false)
Good morning. Needed a help with this code, is only returning bool(false). I am building this code based on a video of the channel Códigofontetv on youtube. This one is index.php: <?php…
-
0
votes1
answer78
viewsI want to know how to show, for the user, Yes or No instead of True or False, respectively
Below is an example of what I’m trying to do: lm = input ('Digite uma letra ') print ('essa é uma letra minúscula? {}' .format(lm.islower())) I’ve tried to put True = Sim and False = Não.…
-
0
votes1
answer36
viewsDisplay a boolean field result if it is True
I’m having difficulty here to display the return of a Boolean field in the template. I need to display the field name if it is true in the template. models topo = models.BooleanField() views def…
-
-1
votes2
answers906
viewsPrinting java Boolean attributes
Good morning! I’m starting now in java and I have the following question: "Why doesn’t the Boolean Tuition attribute appear for me to display the reported result?" Follow below the image of the…
-
-1
votes3
answers2192
viewsPut only True and False in if and while
I wonder what that’s for: if true: #Código or if false: #Código or while true: #código etc..…
-
-1
votes1
answer124
viewsRandom Boolean Matrix in C++
good afternoon. I need to develop a Boolean matrix (almost a graph) random in C++, but I confess I used a lot of python, so I’m having a hard time getting started. But the focus of the question is,…
-
-1
votes2
answers442
viewsHelp with MVC Pick up checkbox value and send to bool variable controller
I’m trying to send the value of checkboxwith id, if the checkbox be it true, will create the column. VIEW <div class="checkbox dadospessoais"> <label> <input class="dadospessoais"…
-
-1
votes3
answers82
viewsHow do I use Javascript to check if my input has any written text?
I tried it this way: function aviso() { document.querySelector(".registers_button") let email_box = document.querySelector(".email") if (email_box.innerHTML == '') { alert("Por favor, preencha os…
-
-1
votes1
answer59
viewsThe parameter of my function, when 1, assumes Boolean value and when False assumes Number value. How do I fix this? Javascript doubt
I’m right at the beginning of my studies with JS, so I got a little lost in this exercise. I need to type check the single parameter of the 'check' function. When it is True, it returns False and…
-
-2
votes1
answer42
viewsWhy does the code return error dumped core?
I came across the following errors: floating point Exception and dumped core for the same code. I did not understand very well why this error occurred. I put the code in a Bugger and from what I saw…
-
-3
votes1
answer58
viewsmy Boolean does not respond , what should I do?
my code is public class Game extends Canvas implements Runnable,KeyListener{ private static final long serialVersionUID = 1L; public static JFrame frame; private Thread thread; private boolean…
-
-4
votes1
answer47
viewsWhy is the while condition not an infinite loop?
Why the condition of this while is not a loop infinite? function fibonacci(n) { const fibSequence = [1]; let currentValue = 1; let previousValue = 0; if (n === 1) { return fibSequence; } let…