fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 252: Conditional assignment
Idiom # 252: Conditional assignment
See
programming-idioms.org
:
Code
x := if condition then "a" else "b"
What are effects?
Running Example
ex252 is for counter in 1..4 do condition => counter %% 3 x := if condition then "a" else "b" say x
What are effects?
last changed: 2024-07-01
next: NYI: Idiom # 253: Print stack trace