Hey guys, I have a user who has a product they have ‘favorited.’ The user has a field called favoritedProducts which contains a string ID in Backendless.
However, when I run this code, string is never printed and the value is nil, when it should have a value. Any help would be much appreciated.
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #bb2ca2}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #d12f1b}
span.s4 {font-variant-ligatures: no-common-ligatures; color: #703daa}
if let string = backendless?.userService.currentUser!.getProperty(“favoritedProducts”) as? String {
print("The string is \(string)")
}