ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: ifThen

ifThen(b, X1, X2) returns X1 if b = true, and X2 otherwise.

Example: ifThen(isOdd(n), "n is odd", "n is even")