跳轉到內容

Rebol 程式設計/unless

來自華夏公益教科書,開放的書籍,開放的世界
UNLESS condition block 

如果條件不為 TRUE,則評估程式碼塊。

UNLESS 是一個原生值。

  • condition -- (型別:任何)
  • block -- (型別:程式碼塊)

原始碼

[編輯 | 編輯原始碼]
unless: native[
    "Evaluates the block if condition is not TRUE." 
    condition 
    block [block!]
]
華夏公益教科書