Top "Boolean" questions

A Boolean data type is a data type with only two possible values: true or false.

dbms_output cannot print boolean?

I am learning cursors and I cannot print the boolean value in the dbms_output.put_line(); The code is …

sql oracle boolean cursor dbms-output
Boolean to string with lowercase

Can the str.format() method print boolean arguments without capitalized strings? I cannot use str(myVar).lower() as argument of …

python string format boolean lowercase
overriding bool() for custom class

All I want is for bool(myInstance) to return False (and for myInstance to evaluate to False when in a …

python class casting boolean python-2.x
Why is 'True == not False' a syntax error in Python?

Comparing boolean values with == works in Python. But when I apply the boolean not operator, the result is a syntax …

python boolean comparison-operators
Why does `a == b or c or d` always evaluate to True?

I am writing a security system that denies access to unauthorized users. import sys print("Hello. Please enter your name:") …

python boolean boolean-expression
How Exactly Does Ansible Parse Boolean Variables?

In Ansible, there are several places where variables can be defined: in the inventory, in a playbook, in variable files, …

boolean ansible yaml ansible-inventory
if statement inside the print statement?

How can I write an if statement inside the print statement? public boolean checkEmpty() { if(array.isEmpty) { Sytem.out.println("…

java if-statement printing boolean system.out
vb.net Boolean and Nothing

Let's define this function : Public Function Test(ByVal value As Boolean) Return "blabla" + If(value = Nothing, "", If(value, "1", "0")) End Function …

.net vb.net boolean nothing
How to best convert VARIANT_BOOL to C++ bool?

When using COM boolean values are to be passed as VARIANT_BOOL which is declared in wtypes.h as short. …

c++ windows com interop boolean
Strange definitions of TRUE and FALSE macros

I have seen the following macro definitions in a coding book. #define TRUE '/'/'/' #define FALSE '-'-'-' …

c++ c macros boolean obfuscation