RosettaCodeData/Task/Conditional-structures/Modula-3/conditional-structures-4.mod3
2023-07-01 13:44:08 -04:00

7 lines
141 B
Text

TYPECASE ref OF
| NULL => IO.Put("Null\n");
| CHAR => IO.Put("Char\n");
| INTEGER => IO.Put("Integer\n");
ELSE
IO.Put("Something\n");
END;