NSIS/Docs/src/int.but

42 lines
994 B
Text
Raw Normal View History

\S1{intinst} Integer Support
\S2{IntFmt} IntFmt
\c user_var(output) format numberstring
Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. Example format strings include "%08X" "%u"
\S2{IntOp} IntOp
\c user_var(output) value1 OP [value2]
Combines value1 and (depending on OP) value2 into the user variable $x. OP is defined as one of the following:
\b \e{+} ADDs value1 and value2
\b \e{-} SUBTRACTs value2 from value1
\b \e{*} MULTIPLIEs value1 and value2
\b \e{/} DIVIDEs value1 by value2
\b \e{%} MODULUSs value1 by value2
\b \e{|} BINARY ORs value1 and value2
\b \e{&} BINARY ANDs value1 and value2
\b \e{^} BINARY XORs value1 and value2
\b \e{>>} RIGHT SHIFTs value1 by value2
\b \e{<<} LEFT SHIFTs value1 by value2
\b \e{~} BITWISE NEGATEs value1 (i.e. 7 becomes 4294917288)
\b \e{!} LOGICALLY NEGATEs value1 (i.e. 7 becomes 0)
\b \e{||} LOGICALLY ORs value1 and value2
\b \e{&&} LOGICALLY ANDs value1 and value2