# In a String why "+" and not "&&"

**URL:** <https://forum.kirupa.com/t/in-a-string-why-and-not/30533>\
**Category:** Uncategorized\
**Created:** [September 10, 2003, 7:03am UTC](https://forum.kirupa.com/t/in-a-string-why-and-not/30533 "2003-09-10T07:03:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/soulty/32/105_2.png) [@soulty](https://forum.kirupa.com/u/soulty)\
**Post date:** [September 10, 2003, 7:03am UTC](https://forum.kirupa.com/t/in-a-string-why-and-not/30533/1 "2003-09-10T07:03:47Z")

</div>

As i was playing around , “trying” to help out dave in the other thread “Email form, button with If statement” I came across a conclusion ( with the help from Digitalosophy (see code below))

but what confused me is that i used “+” in a string to check all 3 conditions . Originally i thought that “&&” would of been used instead of “+” to check all 3 conditions but it didnt seem to work. Is there a reason why ? or when one or the other should be used.

```auto

on (press) {
        if (!sender_title.length + !sender_artist.length + !party_location.length) {
                stop();
        } else {
                play();
        }
}

```

What i have read up was that “+” is called a addition or string concatenation (or to link together)

Can anyone clear this up for me.

thanks.

::Soulty::😏:
