sandbox scripts/ fix 2 conditionals