Shorthand if statement (Ternary Conditional Operator)

I never remember the syntax, or name, for Ternary Conditional Operator.


Apple documentation here.

How to do a lightweight Core Data migration in Swift

Here’s a stack overflow post on the topic.
Define migrationOptions to be used in persistentStoreCoordinator

Inclue options in:

It should end up like this:

Similarly in Objective C. Thanks @rockvotes