好きな単語を入力!

"boolean" in Chinese (Traditional)

布林型布林值

Definition

指只能有兩個值的資料型態:真或假。常見於電腦科學、邏輯及程式設計。

Usage Notes (Chinese (Traditional))

幾乎只在技術和程式設計領域出現。常見於諸如'布林變數'、'布林值'等詞語。平常生活中不常用到。

Examples

A boolean variable can only be true or false.

一個**布林型**變數只能是真或假。

In programming, 'isOn' is a common boolean.

在程式設計中,'isOn' 是常見的**布林值**。

A boolean answer is either yes or no.

**布林型**答案是「是」或「否」。

Make sure your function returns a boolean so the test works properly.

確保你的函式回傳**布林值**,這樣測試才會正確。

You need a boolean expression to use in this if-statement.

你需要一個**布林表達式**來用在這個if語句。

Don’t forget—'==' returns a boolean, not a number!

別忘了,'==' 回傳的是**布林值**,不是數字!