Questions tagged as 'booleano'

3
answers

Boolean primitive values versus boolean object

I am seeing JavaScript and I came across this that I do not understand the Boolean objects and the Boolean primitives . If I use a Boolean object to compare it in a if will it give me false ? Or why the documentation of...
asked by 01.12.2016 / 05:36
3
answers

Boolean operators Python

Hello my question is a very simple question, I have these two expressions and let me analyze them to see if I do it correctly: False or not (True and True) False In this first expression following the recommended order, I first analyze not...
asked by 01.10.2016 / 17:19
3
answers

Error in for loop: "incompatible types: int can not be converted to boolean"

I am new to StackOverflow and also programming in Java. I am going through exercises that I did in pseudocodigo to Java, and I find an error that I can not solve in the for loop. The idea of the exercise is to create a vector that contains fr...
asked by 12.06.2017 / 22:40
1
answer

why do these pieces of code not work when I put or?

I made a program of stone paper and scissors. Everything works well (except when I want to add the option of 'scissors' or 'scissors' as an answer) I want you to accept both options as an input. #(esta es una version simplificada de mi codigo,...
asked by 14.10.2018 / 21:53
4
answers

Logical operator or

What am I doing wrong? In Javascript I am using the logical operator or in:    Use the logical operator or in variables 'foo' and 'bar' and assign it the   result to the variable disjunction. But it's not working for me; The code I use is...
asked by 02.02.2018 / 04:51
2
answers

Because a query is detected as a Boolean

I am a novice student of programming and I have an error in certain lines of code, the question is I do not know why the query takes the value of a Boolean and it gives me the following error.    Uncaught Error: Call to a member function fetc...
asked by 11.12.2018 / 06:21
2
answers

Transform boolean from sql to boolean java?

I'm in a problem, I have a SELECT that asks for ususario (int) , contraseña (String) and tipo (boolean) of a database, I keep them in a Object [][] , all right there, but when I want to save those 3 values in oth...
asked by 25.10.2018 / 06:59
4
answers

how can I use input validation to request a positive number and continue the program?

I would like an output like this: (I would prefer to use only while and Boolean expressions if possible.) escribe un numero: -50 debes usar un numero positivo! escribe un numero: -200 debes usar un numero positivo! escribe un numero: 200 esc...
asked by 30.10.2018 / 01:47
1
answer

++ in front of variable inside of a while - Language C

int bandera; while (++bandera != 1) { bandera--; } I do not understand the code of ++bandera != 1 . Does it mean that +1 is added to the flag and then fixed if it is different from 1?     
asked by 25.09.2017 / 06:05
1
answer

Difference between ascii 160 and 32

my question originated when trying to compare 2 words of different origin, one of phpmyadmin and another of excel, that visually looked exact but when executing gave false the difference can be seen in sublime but then in which cas...
asked by 03.09.2018 / 16:21