Comparison operator

7 views
Skip to first unread message

Ivan Schuetz

unread,
Feb 27, 2016, 11:34:24 AM2/27/16
to Realm
Hi,

I have a question about using = or == in filters.

According to what I read in https://realm.io/docs/swift/latest/, under "Filtering" == seems to be used for everything? On the other side all the snippets use =

Is there a difference?

I'm using Realm in an app and noticed I'm using both in different places and they don't seem to behave differently. But I wonder if I'm missing something or if there's a recommended one.

Thanks,
Ivan

Paul Wadsworth

unread,
Feb 28, 2016, 1:46:45 PM2/28/16
to Realm
Great question Ivan. I hadn't noticed that!

If you look at https://realm.io/news/nspredicate-cheatsheet/ you'll see under "Basic Comparisons" that either can be used.
Reply all
Reply to author
Forward
0 new messages