Questions tagged as 'booleano'

2
answers

Program with boolean expressions enters the if block every time

prefixes = "JKLMNOPQ" suffix = "ack" for letter in prefixes: if letter[0] == "Q"or"O": print(letter+"uack") continue print(letter+suffix) Expected response: Jack Kack Lack Mack Nack Ouack P...
asked by 06.06.2018 / 22:22
1
answer

PHP bool Expression

I'm working on a boolean expression configured by the application user. This expression comes from the database as soon as it's a string, I need to make PHP understand it so I have both true and false. Example: Expressao_string = ”(1 and (...
asked by 28.09.2017 / 11:38
1
answer

How to use Boolean in Json

I have the following JSON, and inside my code I have a check to see if autoLogin is enabled. Object {autoLogin: "true", autoLoginKey: "bWF4LnJvZ2VyaW8=&YWU4NjIwMGJhMTU0NWQzMjQ0ZmRlM2FhYWNiYTJjZmM="} However to do this check use th...
asked by 05.08.2017 / 01:40
0
answers

Method verification problem

I made this function for the old game: void jogadaPC(char m[][3], char opc) { puts("\nVez do computador."); sleep(1); int linha = rand() % 2; int coluna = rand() % 2; bool vazio = localVazio(m, linha, coluna); bool...
asked by 02.06.2017 / 04:48
2
answers

Printing attributes of type boolean in java [closed]

Good morning! I'm starting now in Java and I have the following question: "Why does the tribute Boolean Monthly Rate not appear for me to display the reported result?" Below is the image of the options that appear when I press CTRL + SPACEBAR....
asked by 26.02.2018 / 15:36