Can i do this? what would be the correct syntax?

If somthing
{

} else
{

exit do not execute anything more

}

Thankjs