# I cant figure this out!

**URL:** <https://discourse.codecombat.com/t/i-cant-figure-this-out/10214>\
**Category:** Bugs\
**Created:** [January 7, 2017, 3:37pm UTC](https://discourse.codecombat.com/t/i-cant-figure-this-out/10214 "2017-01-07T15:37:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ep21506](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@ep21506](https://discourse.codecombat.com/u/ep21506)\
**Post date:** [January 7, 2017, 3:37pm UTC](https://discourse.codecombat.com/t/i-cant-figure-this-out/10214/1 "2017-01-07T15:37:51Z")

</div>

I cant figure out what the 5th secret is!!

```python
// Move to the wizard and get their secret values.
hero.moveXY(20, 24);
var secretA = hero.findNearestFriend().getSecretA();
var secretB = hero.findNearestFriend().getSecretB();
var secretC = hero.findNearestFriend().getSecretC();

// If ALL three values are true, take the high path. Otherwise, take the low path.
var secretD = secretA && secretB && secretC;
if (secretD)
    hero.moveXY(30, 33);
else
    hero.moveXY(30, 15);

// If ANY of the first three values are true, take the left path. Otherwise, go right.
if (secretA || secretB || secretC === true) {
    hero.moveXY(20, 24);
}
else {
    hero.moveXY(40, 24);
}

// If ALL five of the secret values are true, take the high path. Otherwise, take the low path.
if (secretA && secretB && secretC && secretD === true) {
    hero.moveXY(30, 33);
}
else {
    hero.moveXY(30, 15);
}

```

---

<div class="post-metadata">

**Author:** ![MunkeyShynes](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/munkeyshynes/32/9277_2.png) [@MunkeyShynes](https://discourse.codecombat.com/u/MunkeyShynes)\
**Post date:** [January 7, 2017, 3:53pm UTC](https://discourse.codecombat.com/t/i-cant-figure-this-out/10214/2 "2017-01-07T15:53:21Z")

</div>

First, just because you can’t figure something out, does not classify the post as a “bug.” A bug is something that you suspect is wrong with the source code of the game, not a deficiency on the part of the user to figure out a level.

Second, it would be very helpful if you would post the name of the level that you are on to enable everyone to quickly refer to it. I remember doing this level but can’t help you because I don’t remember the name of it so there’s no way for me to look it up.

---

<div class="post-metadata">

**Author:** ![Ty\_Ler](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ty_ler/32/5322_2.png) [@Ty\_Ler](https://discourse.codecombat.com/u/Ty_Ler)\
**Post date:** [January 7, 2017, 7:36pm UTC](https://discourse.codecombat.com/t/i-cant-figure-this-out/10214/3 "2017-01-07T19:36:02Z")

</div>

Im not really sure what you mean whats the 5th when I see that you only moved 3 times. What about the 4th?

I dont remember but do the secrets hold either true or false? If so for your 2nd and 3rd if statement putting a `=== true` isnt nessacary but I suppose it would still work. I havent coded in JavaScript in a long time but in python its `True` not `true`. Maybe you need to capitalize your T.

Having a picture would help only because I dont understand your moveXY statements. Your top else and bottom else are the same. I know for this map that the exact spot matters.
