Dec-02-2016, 09:09 PM
It's easiest to see how these things should be coded by using
a simple truth table:
only child if older siblings = False and younger siblings = False
oldest child if older siblings = False and younger siblings = True
youngest child if older siblings = True and younger siblings = False
middle child if older siblings = True and younger siblings = True
a simple truth table:
only child if older siblings = False and younger siblings = False
oldest child if older siblings = False and younger siblings = True
youngest child if older siblings = True and younger siblings = False
middle child if older siblings = True and younger siblings = True