跳轉到內容

Rebol 程式設計/或

來自華夏公益教科書
value1 OR value2 

返回第一個值與第二個值進行按位或運算的結果。

OR 是一個運算子值。

  • value1 -- (型別:邏輯值、數字、字元、元組、二進位制、字串、影像)
  • value2 -- (型別:邏輯值、數字、字元、元組、二進位制、字串、影像)

原始碼

[編輯 | 編輯原始碼]
or: native[
    "Returns the first value ORed with the second." 
    value1 [logic! number! char! tuple! binary! string! image!] 
    value2 [logic! number! char! tuple! binary! string! image!]
]
華夏公益教科書