A conditional statement.
Synopsis:
progn
(
command
)
[
(
command
)
...
(
command
)
]
Arguments:
command
Any valid MeshTV command.
Description:
The
progn
command allows multiple commands to be given in an
if
statement. This is used when you are programming your own aliases.
Examples:
if (defined "isovar") (progn (delete iso1) (plot isovar))
# The following example is read from an init file.
alias command=yes plv " \
if (defined \"vec_ppp\") \
(error \"The vector plot is already plotted.\") \
(progn \
(delete_vec) \
(alias \"vec_ppp\" yes) \
(set_vec_symm) \
(vec var=$1) \
(plot_vec)) \
";
See Also:
alias
,
defined
,
error
,
if