Caffeine Truth

Shane Brinkman-Davis Delamore edited this page Mar 29, 2018 · 2 revisions

Related: Semantic Changes

Caffeine Truth (coming soon)

In CaffeineScript, truth is simple and useful:

  • FALSE: false, undefined and null
  • TRUE: everything else

If you are familiar with the Ruby programming language, CaffeineTruth is basically RubyTruth.

Where It Applies

# In all the following examples, 
#  a is tested with: Caf.true(a)

if a...
unless a...
while a...
until a...

a && ... 
a || ... 
!a
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.