# If-else-if for algorithms that incorporate other algorithms

**URL:** <https://forum.code.org/t/if-else-if-for-algorithms-that-incorporate-other-algorithms/7111>\
**Category:** AP Prep\
**Tags:** csp-unit-pt-prep\
**Created:** [April 5, 2017, 5:55pm UTC](https://forum.code.org/t/if-else-if-for-algorithms-that-incorporate-other-algorithms/7111 "2017-04-05T17:55:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yessica.sanchezlopez](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yessica.sanchezlopez](https://forum.code.org/u/yessica.sanchezlopez)\
**Post date:** [April 5, 2017, 5:55pm UTC](https://forum.code.org/t/if-else-if-for-algorithms-that-incorporate-other-algorithms/7111/1 "2017-04-05T17:55:20Z")

</div>

![](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/f/fb0333eabb0822fc472356e91e4f853a870331a6.PNG)

I wanted to see if this type of code will work for the algorithm portion of the task?

---

<div class="post-metadata">

**Author:** ![anmrobnott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/anmrobnott/32/505_2.png) [@anmrobnott](https://forum.code.org/u/anmrobnott)\
**Post date:** [April 5, 2017, 6:11pm UTC](https://forum.code.org/t/if-else-if-for-algorithms-that-incorporate-other-algorithms/7111/2 "2017-04-05T18:11:16Z")

</div>

@yessica.sanchezlopez

Since it uses logic and a commonly used construct, I would say this is an example of an algorithm. However, the task requires an algorithm that calls another algorithm.

Andrea
