# Help, don't know how to fix error

**URL:** <https://discourse.processing.org/t/help-dont-know-how-to-fix-error/14209>\
**Category:** Processing\
**Created:** [September 25, 2019, 10:52pm UTC](https://discourse.processing.org/t/help-dont-know-how-to-fix-error/14209 "2019-09-25T22:52:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whataloser](https://avatars.discourse-cdn.com/v4/letter/w/9fc29f/32.png) [@Whataloser](https://discourse.processing.org/u/Whataloser)\
**Post date:** [September 25, 2019, 10:52pm UTC](https://discourse.processing.org/t/help-dont-know-how-to-fix-error/14209/1 "2019-09-25T22:52:58Z")

</div>

I am getting an error- incompatible operand types char and string- and I don’t quote know how to fix it. I’m pretty new to this so any help would be greatly appreciated.

Here’s what I’ve got

```auto
int top=350;
boolean lefttop=true;
void setup(){
  size(800,800);
}

void draw(){
  background(0);
  fill(0,255,0);
  rect(top,0,100,25);
  if(lefttop){
    if(keyPressed){
      if(key==“a”||key==“A”){
        top=top-10;
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [September 26, 2019, 1:04am UTC](https://discourse.processing.org/t/help-dont-know-how-to-fix-error/14209/2 "2019-09-26T01:04:16Z")

</div>

> **[String / Reference](https://processing.org/reference/String.html)**
>
> A string is a sequence of characters. The class String includes methods for examining individual characters, comparing strings, searching strings, extracting parts of strings, and for convertin…

Which states:

> Strings are always defined inside double quotes ( **“Abc”** ), and characters are always defined inside single quotes ( **‘A’** ).

🙂
