@@ -129,6 +129,8 @@ Example:
129129goo
130130```
131131
132+produces: `2`
133+
132134Here's a slightly more complex example with runes that use the filesystem:
133135```
134136/= file-length
@@ -139,4 +141,21 @@ file-length
139141```
140142produces the number of bytes in the file "/path/to/hoon/file."
141143
142−produces: `2`
144+### `/,` switch by path
145+
146+`/,` is a switch statement, which picks a branch to evaluate based on
147+whether the current path matches the path in the switch statement.
148+
149+Example:
150+```
151+/= just-right
152+ /: /right-path :: set path to /right-path
153+ /,
154+ /wrong-path /~ ~
155+ /another-wrong-path /~ ~
156+ /right-path /~ %evaluate-me :: only evaluate this horn
157+ ==
158+`@t`just-right
159+```
160+
161+produces: `'evaluate-me'`