Hello,
Good morg.
I'm having some doubts in NSIS Scripting.
Is there anyway in scirpting, so that I can do a Conditional
Check...?
Like,
If "$1==0"
ExecShell open '$INSTDIR\Readme.html'
The above snippet will try to open the Readme.html only if
the Variable $1 equals to Zero..
Thanks In Advance,
Regards
Venky
Is there a way for "Conditional Check"?
4 posts
Venky,
use StrCmp to set conditional statements, eg:
use StrCmp to set conditional statements, eg:
Greetz, HendriStrCmp $1 0 "" NotGood
ExecShell open '$INSTDIR\Readme.html'
NotGood:
Henri,
Thankx for ur response...!
I've some more doubts on that..
I've to do a Integer Comparsion.
I can achieve the same using IntCmp.
However, My comparision wud go like this
If "$?==0"
Do Something
If "$?!=""
Do Someother Thing
I can achieve the "$?!=0 " thru an IntCmp, Where
I'm not aware of the Value $? ( what Negative Value
it may hold)
Thanks In Advance
Regards
Venky
Thankx for ur response...!
I've some more doubts on that..
I've to do a Integer Comparsion.
I can achieve the same using IntCmp.
However, My comparision wud go like this
If "$?==0"
Do Something
If "$?!=""
Do Someother Thing
I can achieve the "$?!=0 " thru an IntCmp, Where
I'm not aware of the Value $? ( what Negative Value
it may hold)
Thanks In Advance
Regards
Venky
Venky,
use labels, eg:
Good luck, greetz, Hendri.
use labels, eg:
Is this what you mean to do?IntCmp $0 0 "" NotZero
;Do something if zero
Goto Continue
NotZero:
;Do something if not zero
Continue:
;other commands...
Good luck, greetz, Hendri.