# If else statements

**URL:** <https://forum.freecodecamp.org/t/if-else-statements/450343>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [March 9, 2021, 7:54pm UTC](https://forum.freecodecamp.org/t/if-else-statements/450343 "2021-03-09T19:54:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [March 9, 2021, 7:57pm UTC](https://forum.freecodecamp.org/t/if-else-statements/450343/3 "2021-03-09T19:57:17Z")

</div>

your code

> [@ayomideawolope](#):
>
> ```auto
> else {
> result = "5 or smaller"; 
> }
> 
> ```

the starting code

> [@](#):
>
> ```auto
> if (val <= 5) {
> result = "5 or Smaller";
> }
> 
> ```

there is a small difference in the string  
can you see it?

* * *

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

_[View the full topic](https://forum.freecodecamp.org/t/if-else-statements/450343)._
