From Wikipedia, the free encyclopedia
布林表達式(粵拼:bou3 lam4 biu2 daat6 sik1;英文:Boolean expression)係主流程式語言都有嘅一種表達式,部電腦睇咗條式之後會畀出一個布林值,表示嗰條表達式「係真定假」。
呢篇文 需要熟悉呢方面嘅人幫手寫。 |
5 > 3
值應該會係 True
(真)。3 > 5
值應該會係 False
(假)5>=3
同 3<=5
係等價嘅布林表達式,兩者嘅值都係 True
。X > 3
),亦可以有多過一個變數(例如 X > Y
)。Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.