# If then addition?

**URL:** <https://forum.kirupa.com/t/if-then-addition/40428>\
**Category:** Uncategorized\
**Created:** [January 18, 2004, 7:28pm UTC](https://forum.kirupa.com/t/if-then-addition/40428 "2004-01-18T19:28:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clwright\_2000](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@clwright\_2000](https://forum.kirupa.com/u/clwright_2000)\
**Post date:** [January 18, 2004, 7:28pm UTC](https://forum.kirupa.com/t/if-then-addition/40428/1 "2004-01-18T19:28:23Z")

</div>

In kirupa’s example of how to set up a password I was wondering how to extend to include more paswords. I know its simple but dont know the syntax??? helpppppp 😉

password = inputName

if (password == “kirupa”) {  
answer = “Access granted!” ;  
} else {  
answer = “Access denied!” ;  
}
