swift firebase retrieving data error -


my if not working

    feelingref.child("conditions/needsattention").observeeventtype(.value) { (snap: firdatasnapshot) in             print((snap.value?.description)!)             if (snap.value?.description)! == 1 {                 self.conditionlabel.text = "관심필요"             }         } 

when print snap's value prints 1 if not working!!!

it can string type check dynamictype of variable

print(snap.value!.description.dynamictype)  if (snap.value!.description)! == "1" {                 self.conditionlabel.text = "관심필요" } 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -