Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
language:langs:chp [2025/11/17 18:26] – [Debugging and other support functions for simulation] rajitlanguage:langs:chp [2026/05/12 12:22] (current) – [Conditionals] rajit
Line 421: Line 421:
 wait-for (condition) wait-for (condition)
 </code> </code>
 +
 +The C/C++ like ''if''-statement is also supported in ''chp-txt''. The statement
 +<code act>
 +if (G) {
 +   S
 +}
 +</code>
 +corresponds to
 +<code act>
 +[ G -> S [] else -> skip ]
 +</code>
 +
 +
  
 ==== Loops ==== ==== Loops ====