Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Integer-comparison/NSIS/integer-comparison-1.nsis
Normal file
22
Task/Integer-comparison/NSIS/integer-comparison-1.nsis
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Function IntergerComparison
|
||||
Push $0
|
||||
Push $1
|
||||
StrCpy $0 8
|
||||
StrCpy $1 2
|
||||
|
||||
IntCmp $0 $1 Equal Val1Less Val1More
|
||||
|
||||
Equal:
|
||||
DetailPrint "$0 = $1"
|
||||
Goto End
|
||||
Val1Less:
|
||||
DetailPrint "$0 < $1"
|
||||
Goto End
|
||||
Val1More:
|
||||
DetailPrint "$0 > $1"
|
||||
Goto End
|
||||
End:
|
||||
|
||||
Pop $1
|
||||
Pop $0
|
||||
FunctionEnd
|
||||
18
Task/Integer-comparison/NSIS/integer-comparison-2.nsis
Normal file
18
Task/Integer-comparison/NSIS/integer-comparison-2.nsis
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Function IntegerComparison
|
||||
Push $0
|
||||
Push $1
|
||||
|
||||
StrCpy $0 8
|
||||
StrCpy $1 2
|
||||
|
||||
${If} $0 == $1
|
||||
DetailPrint "$0 = $1"
|
||||
${ElseIf} $0 < $1
|
||||
DetailPrint "$0 < $1"
|
||||
${ElseIf} $0 > $1
|
||||
DetailPrint "$0 > $1"
|
||||
${EndIf}
|
||||
|
||||
Pop $1
|
||||
Pop $0
|
||||
FunctionEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue