marqdo

04-分支ok

structure/04-分支.mq.md

Structure

fn · h1main
comment

斜体行是语句。分支用 +;表头仅为 * 的是否则臂。

bind `x` = 0
branch
arm`x` > 0
call> 打印 内容=正数
arm`x` < 0
call> 打印 内容=负数
armelse
call> 打印 内容=零
Functions
Variables
  • x int
    0

Execution

Source

---
title: 分支
description: `+` 各臂;单独的 `*` 臂为否则
---

# main

斜体行是语句。分支用 `+`;表头仅为 `*` 的是否则臂。

**`x` = 0**

1. `x` > 0
  > 打印 内容=正数
2. `x` < 0
  > 打印 内容=负数
3. *
  > 打印 内容=零

Variable