# Exiting a code "actionscript novice"

**URL:** <https://forum.kirupa.com/t/exiting-a-code-actionscript-novice/120975>\
**Category:** Uncategorized\
**Created:** [August 29, 2004, 4:32pm UTC](https://forum.kirupa.com/t/exiting-a-code-actionscript-novice/120975 "2004-08-29T16:32:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![intrakit\_design](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@intrakit\_design](https://forum.kirupa.com/u/intrakit_design)\
**Post date:** [August 29, 2004, 4:32pm UTC](https://forum.kirupa.com/t/exiting-a-code-actionscript-novice/120975/1 "2004-08-29T16:32:23Z")

</div>

i have a if statement it checks a form that has \* to mark fields that need to be filled out i want my if statement ot check to see if the fields are filled in and if they are not i want it to exit the script before it moves on to the next command… i guess i could use a else if but i want to know if there is another way…

on(release){  
if (SubjectTxt.text == “” or NameTxt.text == “” or EmailTxt.text == “” or MessageTxt.text == “”) {  
warning.text = “Not all Fields were filled out correctly!!!”;  
“THIS IS WHERE I WOULD PLACE IT”  
}  
}  
form.loadVariables(“email.php”, “POST”);
