Test conditional before scripting