---
title: "Discussion on \"Control Flow: The \"Expression Engine\"\" | Hashnode"
description: "Discussion on \"Control Flow: The \"Expression Engine\"\". In JavaScript, if/else is a Statement (it does something). In Rust, if/else and match are Expressions (they evaluate to a value). \nThink of Rust's control flow as a Logic Engine that processes conditions and returns direct results, acting more like a..."
url: "https://hashnode.com/posts/control-flow-the-expression-engine/69d4dfcaa565305bb4c0aa8d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Control Flow: The "Expression Engine"](https://yafi.hashnode.dev/control-flow-the-expression-engine?utm_source=hashnode&utm_medium=feed)

In JavaScript, if/else is a Statement (it does something). In Rust, if/else and match are Expressions (they evaluate to a value). Think of Rust's control flow as a Logic Engine that processes conditions and returns direct results, acting more like a...

Apr 7 · 2 min read · yafi.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#control-flow](https://hashnode.com/tag/control-flow)
-   [#if-else](https://hashnode.com/tag/if-else)
-   [#match](https://hashnode.com/tag/match)
-   [#loops](https://hashnode.com/tag/loops)

## Written by

[Muhammad Yafi Alhakim](https://hashnode.com/@yafialhakim)

@yafialhakim · Jakarta, Indonesia

  
[View profile](https://hashnode.com/@yafialhakim)

Frontend Engineer @MySkill.id

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
