# If this AND That then do something

**URL:** <https://forum.kirupa.com/t/if-this-and-that-then-do-something/176263>\
**Category:** flash\
**Created:** [January 22, 2006, 4:08am UTC](https://forum.kirupa.com/t/if-this-and-that-then-do-something/176263 "2006-01-22T04:08:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [January 22, 2006, 4:08am UTC](https://forum.kirupa.com/t/if-this-and-that-then-do-something/176263/1 "2006-01-22T04:08:15Z")

</div>

I can’t seem to find this simple statement. I need to make an IF/AND/THEN statement as featured below. I know the example below does not work. Does anyone know how this should be written?

```
if(varA == "A") + (varB == "B") {

```

trace(“varA & varB are equal to A and B”)  
}
