Caffeine Truth - caffeine-suite/caffeine-script GitHub Wiki

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