# Errors in action script "if" function-help

**URL:** <https://forum.kirupa.com/t/errors-in-action-script-if-function-help/229623>\
**Category:** Uncategorized\
**Created:** [June 19, 2007, 1:39am UTC](https://forum.kirupa.com/t/errors-in-action-script-if-function-help/229623 "2007-06-19T01:39:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiz2](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@dawiz2](https://forum.kirupa.com/u/dawiz2)\
**Post date:** [June 19, 2007, 1:39am UTC](https://forum.kirupa.com/t/errors-in-action-script-if-function-help/229623/1 "2007-06-19T01:39:41Z")

</div>

I copied action script from a password .fla script in Flash 4. When I post it in Flash 8 there are errors. Here is the script. Hope it is a simple fix. thanks.  
on (press) {  
if (user add password eq “RonF” add “7782”) {  
gotoAndPlay(127);  
}  
if (user add password eq “BrianB” add “7780”) {  
gotoAndPlay(127);  
}  
if (user add password eq “admin” add “mvp123”) {  
gotoAndPlay(127);  
}  
}  
on (release) {  
gotoAndPlay(130);  
}
