An alternative of operator "If" may be used in the command line. A part of the command line must be enclosed into angle brackets in the following form:
<<SpecialVariable>:<string1>|<string2>>
This construction will be replaced with <string1> in the command line, if <SpecialVariable> – not an empty value, otherwise <string2> will be added.
In the construction <string2> may be missing, <string1> may be empty. <SpecialVariable> as other variables may be inserted in any position in the command line, if enclosed in '%'.
Another variant of conditional substitution (similar to switch in C):
<SpecialVariable=value1:string1|=value2:string2|…|=valueN:stringN|:stringOther>
If variable value is valueX, then the construction will be replaced with appropriate stringX. If no value matched, stringOther is inserted, and colon character ":" ahead of stringOther is optional, unless stringOther starts with ":" or "=".
(!) These constructions may be enclosed into each other.
<SpecialVariable> may have following values:
Variable Name
|
Values
|
Comments
|
IfCompress
|
<compression level code>
|
When different from Default.
|
|
<empty>
|
Otherwise.
|
IfKeepCorrupt
|
1
|
If flag "Leave corrupted files on disk" was set in the Unpacking Dialog.
(!) If the user set the flag, an external archiver will be used instead of plugin.
|
|
<empty>
|
Otherwise.
|
IfMove
|
1
|
If flag "Move to Archive (remove source files after archiving)" was set the Archiving Dialog.
|
|
<empty>
|
Otherwise.
|
IfMulti
|
<bytes>
|
If flag "Multivolume archives" was set in the Archiving Dialog and a volume size was specified, different from default.
|
|
<space>
|
If default volume size to be used.
|
|
<empty>
|
Otherwise.
|
IfPacker
|
<file name in lower case without extension and path>
|
Always the name of the external archiver. Lower case, without extension and path.
Can be used when in the field for the external archiver multiple variants of files are listed, delimited with pipe "|". Then depending on which file is used, various command line options can be set.
|
IfRecurs
|
1
|
If in the Archiving Dialog the flag "Recursively save subfolders" is set.
|
|
<empty>
|
Otherwise.
|
IfSFX
|
<archive type code>
|
If in Archiving Dialog the flag "Create self-unpacking archive" is set.
|
|
<empty>
|
Otherwise.
|
IfSolid
|
1
|
If in the Copy Dialog the flag "Solid archive" is set.
|
|
<empty>
|
Otherwise.
|
IfWithPath
|
1
|
When copying from archive, if in the Copying Dialog the flag "Unpack with path" is set.
Or during copying into archive if in the dialog the flag "Save with path" is set.
|
|
<empty>
|
Otherwise.
|
|