It shall be the duty of the court in deciding whether to exercise its powers under section 23, 24 , 24A , 24B or 24E above and, if so, in what manner, to have regard to all the circumstances of the case, first consideration being given to the welfare while a minor of any child of the family who has not attained the age of eighteen.
As regards the exercise of the powers of the court under section 23(1)(a), (b) or (c), 24 , 24A , 24B or 24E above in relation to a party to the marriage, the court shall in particular have regard to the following matters—
As regards the exercise of the powers of the court under section 23(1)(d), (e) or (f), (2) or (4), 24 or 24A above in relation to a child of the family, the court shall in particular have regard to the following matters—
As regards the exercise of the powers of the court under section 23(1)(d), (e) or (f), (2) or (4), 24 or 24A above against a party to a marriage in favour of a child of the family who is not the child of that party, the court shall also have regard—