Running a script from if block inside another script

how do i run a script from if block inside another script?

this is what i tried but it doesnt seem to work:

if test $a -eq $w
then
sh /home/scripts/script1.bash
fi

Your attempt looks correct. What error you are getting ?

Possibly try if your using sh:

if [ $a -eq $w ]
then sh /home/scripts/script1.bash
fi     

hi, thanks a lot..there was a problem with my if block.