Translation guide
In Japanese, there is no single word for 'boolean value'. The concept is expressed using technical terms from computing and logic, primarily ブール値 or 真偽値.
A data type that can be true or false, used in programming and digital logic.
The most common and direct translation in programming contexts. It is a loanword from English 'Boolean value'.
This function returns a boolean value.
A native Japanese term meaning 'true/false value'. Common in technical documentation and academic contexts.
Assign a boolean value to the variable.
Means 'logical value'. Less common than ブール値 or 真偽値, but sometimes used in logic or older texts.
A logical value is either true or false.
A truth value in formal logic or Boolean algebra.
In everyday conversation, Japanese speakers rarely discuss 'boolean values' outside technical fields. If you need to explain the concept to a non-specialist, you might say 「真か偽のどちらかの値」 (a value that is either true or false).
この論理式の真偽値を計算する。
Calculate the boolean value of this logical expression.