Nil Coalescing Operators with Swift

Nil Coalescing Operators with Swift (Episode 29)
May 25, 2016 Justin

Nil Coalescing Operators with Swift (CartoonSmart Video Tutorial Podcast 29)

Watch Fullscreen

In this Swift video tutorial, we’ll talk about nil coalescing operators. This operator, defined by two question marks ( ?? ), allows you to quickly set a variable equal to a default value if another variable is nil. For example, let someVar = varThatMightBeNil ?? defaultAmount

Subscribe to our podcast on iTunes or through your favorite RSS reader at or check out our more serious tutorials by visiting the main page at

Hosts: Justin Dike, Clevon O’Doul



Subscribe to this Podcast on iTunes


Become part of the CartoonSmart Team with our Affiliate Program

Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!

Uh oh, missing your affiliate ID. Create one real quick