Only assign value to variable if not nil.

2016-01-06 Thread Alex Zavatone
Hi all. I was just extending some of my configuration file support on iOS to add move from one config file to one master and then a product specific one. So, in the master, i'll have the full set of changeable properties defined in a pList and after reading this into a dictionary, I'll assign t

Re: Only assign value to variable if not nil.

2016-01-06 Thread Alex Zavatone
Bingo. Ternary operators. Thanks all. On Jan 6, 2016, at 5:45 PM, Alex Zavatone wrote: > Hi all. I was just extending some of my configuration file support on iOS to > add move from one config file to one master and then a product specific one. > > So, in the master, i'll have the full set