I need to do this based on certain conditions, does anyone know how please?