# Expecting }, found 'else'

**URL:** <https://discourse.processing.org/t/expecting-found-else/19328>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [April 2, 2020, 8:19am UTC](https://discourse.processing.org/t/expecting-found-else/19328 "2020-04-02T08:19:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 2, 2020, 8:40am UTC](https://discourse.processing.org/t/expecting-found-else/19328/2 "2020-04-02T08:40:36Z")

</div>

Hello,

Please format your code as a courtesy to everyone:  
[https://discourse.processing.org/faq#format-your-code](https://discourse.processing.org/faq#format-your-code)

[This](https://discourse.processing.org/t/help-processing-coding/19279) is your other related post.

There are lots of resources here:

> **[Welcome to Processing!](https://processing.org/)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

You have many errors (underlined in red):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d0fd12f77e40503862891dbd5be4dc195d306bc6.png)

You have variables that were not declared.  
Discussed here:

[![](https://img.youtube.com/vi/B-ycSR3ntik/hqdefault.jpg "4.1: Variables - Processing Tutorial") ](https://www.youtube.com/watch?v=B-ycSR3ntik)

You did not use random correctly:

> **[random() / Reference](https://processing.org/reference/random_.html)**
>
> Generates random numbers. Each time the random() function is called, it returns an unexpected value within the specified range. If only one parameter is passed to the function, it will return a…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/expecting-found-else/19328)._
