View Problem

Perform an action if a condition is true (IF .. THEN)

Given a variable name, if the value is "Bob", display the string "Hello, Bob!". Perform no action if the name is not equal.
if (name=="Bob") echo("Hello, Bob!")

Submit a new solution for fantom
There are 22 other solutions in additional languages (clojure, cpp, csharp, erlang ...)