added small usage examples

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3703 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2004-10-10 18:41:43 +00:00
parent 07eb9b6425
commit 38b693f19a
24 changed files with 618 additions and 23 deletions

View file

@ -6,6 +6,9 @@
Formats the number in "numberstring" using the format "format", and sets the output to user variable $x. Example format strings include "%08X" "%u"
\c IntFmt $0 "0x%08X" 195948557
\c IntFmt $0 "%c" 0x41
\S2{IntOp} IntOp
\c user_var(output) value1 OP [value2]
@ -39,4 +42,9 @@ Combines value1 and (depending on OP) value2 into the user variable $x. OP is de
\b \e{||} LOGICALLY ORs value1 and value2
\b \e{&&} LOGICALLY ANDs value1 and value2
\c IntOp $0 1 + 1
\c IntOp $0 $0 + 1
\c IntOp $0 $0 << 2
\c IntOp $0 $0 ~
\c IntOp $0 $0 & 0xF