RosettaCodeData/Task/Conditional-structures/DM/conditional-structures-2.dm

3 lines
84 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
// x will be 1 if condition is a true value, 2 otherwise.
var/x = condition ? 1 : 2