Questions tagged as 'booleano'

1
answer

Problem with boolean checks in JavaScript

var a = '0'; if (!a) console.log('false'); if (a == false) console.log('false 2'); False is not displayed, but false 2 is?     
asked by 09.03.2016 / 23:43
1
answer

(~ ABC) + (A ~ B ~ C) + (AB ~ C) + (ABC)

I'm trying to solve this formula: (~ABC)+(A~B~C)+(AB~C)+(ABC) (~ABC)+(A~B~C)+AB (~ABC)+A(B+~B~C) But I do not know how to get out of this last part. I know the end result has to be a~c + bc . But I do not know how to get there.     
asked by 20.10.2018 / 06:36
4
answers

How this operator is not working in this code?

Code: var i = 0, finished = false; while( (i < acentos.length) && !finished){ Question: I have a bool variable getting false, and in my while I'm denying it. If I am denying a false variable, it will tr...
asked by 12.07.2017 / 03:36
1
answer

Problems with union of 2 vectors

I have a problem to join two sets of integers into a vector, without repeating numbers that are in Set A and Set B. The following error is displayed in line 13:    error: unknown type name 'bool'; did you mean '_Bool'? | Changing bool...
asked by 16.11.2018 / 07:19
1
answer

Why are boolean values converted to string in camel case in C #?

Today I came across a peculiarity of C # which I had never stopped to pay attention to: When converting a value bool to string , the result is a text in camel case : string verdadeiro = true.ToString(); //Converte para True st...
asked by 05.09.2017 / 20:16
1
answer

Boolean Array for Integer

How can I transform a boolean array, boolean[] bits into its corresponding Integer ? I have a function that does exactly the opposite, but I did not understand it enough to be able to invert it. int input = 62; boolean[] bits...
asked by 31.08.2017 / 21:13
1
answer

When to use And, AndAlso and Or, OrElse? [duplicate]

I do not know when to use the syntaxes Or or OrElse and / or And or AndAlso , because I do not understand what difference it makes in the logic circuit. Being in C #, And = & , AndAlso =...
asked by 24.09.2017 / 20:05
1
answer

Why do not Booleans have a common class in Ruby?

Ruby does not have a class Boolean . I noticed that boolean objects are of specific classes depending on the value, see: true.class => TrueClass false.class => FalseClass Unlike other languages, such as C # and Java, where t...
asked by 02.01.2018 / 23:14
1
answer

WCF parameter out bool

I created a WebService WCF , and in the interface IService1.cs I put the signature of the methods [ServiceContract] public interface IService1 { [OperationContract] bool insertConsulta(BConsulta bCos); [OperationContract] boo...
asked by 21.05.2016 / 18:33
1
answer

Click the Save and change Boolean Django 2.0 button

Gentlemen, I'm studying Django 2.0, and I'm having a problem, when I click Save I want to change the Boolean database from False to True in the database, and I do not the slightest idea how to do it. If someone can help me? Follow summ...
asked by 18.08.2018 / 16:51