script for condotionals with variables added