Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| language:langs:chp [2026/05/12 12:22] – [Conditionals] rajit | language:langs:chp [2026/05/13 20:44] (current) – [An example] rajit | ||
|---|---|---|---|
| Line 497: | Line 497: | ||
| </ | </ | ||
| would be written | would be written | ||
| + | <code act> | ||
| + | chp-txt { | ||
| + | | ||
| + | recv (L, x); | ||
| + | if (x > 0) { send (R, x); } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | This can also be written | ||
| <code act> | <code act> | ||
| chp-txt { | chp-txt { | ||