In this section I will itemize some of the caveats of the dotdotfiles.
if {$test == "YES"} { print "Test was true" } else { print "Test was false" }The pick takes three arguments, the first is a truth expression, the second is a string to return, if the truth value is true, and the third is a string to return if the string is false. The example above can be rewritten to the following using the pick function:
print "Test was [pick {$test == {YES}} true false]"