Wiki
Show
Ignore:
Timestamp:
03/20/10 04:42:28 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Improvements to the How-To's.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/HowTo/210-UseNilAndNilableTypes.cobra

    r2127 r2335  
    9292        name = if(value and value <> 0, 'value', nil)  # type is "String?" 
    9393        if name, print name 
     94 
     95        # you can coalesce with ? as a binary operator 
     96        displayName = name ? '(no name)' 
     97        print displayName