# Else if

**URL:** <https://forum.kirupa.com/t/else-if/269111>\
**Category:** Uncategorized\
**Created:** [August 22, 2008, 7:12pm UTC](https://forum.kirupa.com/t/else-if/269111 "2008-08-22T19:12:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomsoa](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thomsoa](https://forum.kirupa.com/u/thomsoa)\
**Post date:** [August 22, 2008, 7:12pm UTC](https://forum.kirupa.com/t/else-if/269111/1 "2008-08-22T19:12:45Z")

</div>

I know this is basic - im new here though

I am trying to write a code that says if button pressed once x happens if pressed twice y happens

i am just not sure how to say pressed twice

thanks

amanda
