Compare two revisions of: Visualization If and Else

... ... @@ -1,3 +1,7 @@
1 +<div class="alert">
2 +This page describes <code>\text</code>-conditions in the old <code>genericGWTVisualization</code> environment, which has been superseded by <code>genericJSXVisualization</code>. For current content, see <a href="JSX-Visualization-Text-and-Canvases.md#if-and-ifelse">If and IfElse</a> in JSX-Visualization-Text-and-Canvases. See also <a href="genericJSXVisualization-vs-genericGWTVisualization.md">what changed between the two systems</a>.
3 +</div>
4 +
1 5 In the `\text` command you can use `\IF{condition}{text}` and `\IFELSE{condition}{text}{othertext}` to write text which will only be visible if a certain condition holds.
2 6
3 7 It's possible to ask for two conditions by combining them with the command AND: `\IF{condition1 AND condition2}{text}`
4 8