ch04 complex condition script