Conditional structures: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
imported>J7M
(Add example for SmallBASIC)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 8,626:
=={{header|Wren}}==
The ''if/else'' statement and the ''ternary operator (?:)'' are Wren's basic conditional structures though it can be argued that the ''&&'' and ''||'' operators, which do short-circuit evaluation, should be included under this heading as well.
<syntaxhighlight lang="ecmascriptwren">for (b in [true, false]) {
if (b) {
System.print(true)
9,476

edits