Hello!
Studying the source code (PortableApps.comLauncher), I came across a ${|} and don't understand meaning of ${|} also not can find documentation of this.
This like as OR? When i see this into end of expression - not sure that understand meaning. Finding in source code, this forum, help files and search engine not get results.
You are here
Meaning of ${|} define\variable
December 1, 2017 - 4:35pm
#1
Meaning of ${|} define\variable
December 2, 2017 - 3:34pm
#2
Read the LogicLib documentation.
That little define is made available thanks to the LogicLib.nsh header file.
You will usually see this used along side the ${IfThen}
define.
Here are some examples:
;= This will only execute the !echo instruction if there were errors
${IfThen} ${Errors} ${|} !echo "This will only show if there are errors!" ${|}
;= This will check to see if the process "MyProcess.exe" is running.
;= If it is running then it'll terminate it.
${IfThen} ${ProcessExists} MyProcess.exe ${|} ${TerminateProcess} MyProcess.exe $0 ${|}
;= This one will check the host PC if it's running Windows XP or later.
;= If the check fails, it'll show a message box with the error message.
${IfNotThen} ${AtLeastWinXP} ${|} MessageBox MB_OK "ERROR: You need WinXP or greater to continue.." ${|}
So you can see that ${|}
is just a means for the ${IfThen}
to end it's conditional instructions.
You can always search the LogicLib's source code to see for yourself.
Hope this helps!
December 3, 2017 - 4:01am
#3
Thank you very much!
Ooh, at last it made sense! It's strange that I did not notice this dependence. Thank you very much!