RosettaCodeData/Task/Conditional-structures/MDL/conditional-structures-2.mdl

6 lines
152 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
;"Negate X if its value is less than 0"
<AND <L? .X 0> <SET X <- .X>>>
;"Print a message unless the quiet flag is set"
<OR .QUIET? <PRINC "Finished">>