Is it possible to export conditions as a script?