You may use braces where you don't need them, such as in set, if or elseif. You may do this for stylistic reasons or because you can't remember which commands normally work with expressions.
set c {join e 2};
if {== #c e1}:
echo "Partridge";
elseif {== #c e2}:
echo "Turtledoves";
elseif {== #c e3}:
echo "French Hens";
endif;
You may use braces where you don't need them, such as in
set
,if
orelseif
. You may do this for stylistic reasons or because you can't remember which commands normally work with expressions.This outputs
Turtledoves
.