script-template - make the scripts return 0 at the end (was returning last condition logical value)