First, the message:
Hello, world!
A simple test follows:
${message}
A more rigorous test, showing that we're not faking it:
${message@#$%&}
Message exists!
...and even generates output!
Nested statements are ok, too.
Here's more edge cases of if instructions.
One is not two
And more complex ifs:
And again:
One is one
Now for switch case instructions:
The world says hello to you.
And another one, with a default instruction:
This is no message in particular
Another, degenerate switch:
This is not a switch statement.
A list literal test:
abc
def
ghi
A boolean test:
B1:
False
B2:
True
Now call the function:
Variables are: 1, 2, 3.
test23
Hello, world!
hello all
one
hash89
output
Simple.