Adapting condition scripts