04-branchok
Structure
fn · h1main
comment
bind
`x` = 0branch
arm
`x` > 0call
> print text=正数arm
`x` < 0call
> print text=负数arm
elsecall
> print text=零Execution
零
Source
--- title: 分支 description: `+` 臂;整行 `*` 为 else --- # main 斜体行是程序语句。分支用 `+`;臂头单独一行 `*` 表示 else。 *`x` = 0* + `x` > 0 > print text=正数 + `x` < 0 > print text=负数 + * > print text=零
斜体行是程序语句。分支用
+;臂头单独一行*表示 else。