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

3 lines
84 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
// x will be 1 if condition is a true value, 2 otherwise.
var/x = condition ? 1 : 2