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.
ExpandDiskEdit
php
if($name == "Bob") {
echo "Hello, Bob!";
}
DiskEdit
csharp
if (name == "Bob") Console.WriteLine("Hello, {0}!", name);

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