Created
January 31, 2017 18:28
-
-
Save qHack/cb42bd4f81a83abc0a106bfa666a65c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swift code: | |
while (counter < 50){ | |
patientName = newPatient.patientName + String(counter) | |
FIRDatabase.database().reference().child("testTable").child("patient").setValue(patientName) | |
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("patient DOB").setValue(newPatient.patientDOB) | |
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("test var").setValue(newPatient.patienttest) | |
FIRDatabase.database().reference().child("testTable").child("patient").child(patientName).child("test var 1").setValue(newPatient.patienttest1) | |
counter += 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment