# My huge conditional statement causing errors!

**URL:** <https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279>\
**Category:** Uncategorized\
**Created:** [June 16, 2004, 3:10pm UTC](https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279 "2004-06-16T15:10:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [June 16, 2004, 3:10pm UTC](https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279/1 "2004-06-16T15:10:18Z")

</div>

FMX  
Hi guys and girls,

I have a conditional statement for a form i have created and its absolutely HUGE (see below). It’s so big it extends more than 1 line in the Actions code area and because of this its causing errors…mainly this one

> Symbol=registerClip, Layer=actions, Frame=1: Line 43: Left side of assignment operator must be variable or property.

Here’s my statement, can u see any problems? Im going bug eyed ☹ I cannot see the problem

```auto

if((first_name==undefined || first_name.trim()=="") || (last_name==undefined || last_name.trim()=="") || (street==undefined || street.trim()=="") || (suburb==undefined || suburb.trim()=="") || (postcode==undefined || postcode.trim()=="") || (state==undefined || state.trim()=="") || (country==undefined || country.trim()=="") || (area_code==undefined || area_code.trim()=="") ||(business_ph==undefined || business_ph.trim()="") || (title==undefined || title.trim()=="") || (company==undefined || company.trim()=="") || (email_address1==undefined || email_address1.trim()=="") || (email_address2==undefined || email_address2.trim()=="")){

```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 3:14pm UTC](https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279/2 "2004-06-16T15:14:24Z")

</div>

```auto
if((first_name==undefined || first_name.trim()=="") || (last_name==undefined || last_name.trim()=="") || (street==undefined || street.trim()=="") || (suburb==undefined || suburb.trim()=="") || (postcode==undefined || postcode.trim()=="") || (state==undefined || state.trim()=="") || (country==undefined || country.trim()=="") || (area_code==undefined || area_code.trim()=="") ||(business_ph==undefined || business_ph.trim()=**[COLOR=Red]=[/COLOR]**"") || (title==undefined || title.trim()=="") || (company==undefined || company.trim()=="") || (email_address1==undefined || email_address1.trim()=="") || (email_address2==undefined || email_address2.trim()=="")){

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 3:15pm UTC](https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279/3 "2004-06-16T15:15:28Z")

</div>

[QUOTE=claudio][/QUOTE]

??? Sorry Claudio, cant see anything in your post

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 3:16pm UTC](https://forum.kirupa.com/t/my-huge-conditional-statement-causing-errors/113279/4 "2004-06-16T15:16:11Z")

</div>

> [@mindfriction](#):
>
> ??? Sorry Claudio, cant see anything in your post

WHopps now I can :lol:

Thanks a bunch, I knew all it needed was a new set of eyes
