Archive: if $0 >= 0 and $0 <= 32 then


if $0 >= 0 and $0 <= 32 then
Is there a way to be able to perform an action based on the value of the variable in the range.

:(

E.g.

if $0 >= 0 and $0 <= 32 then
Do Something
Else
Do Something
Endif

As Opposed to

StrCmp $R7 0 ReadFileByte
StrCmp $R7 1 ReadFileByte
StrCmp $R7 2 ReadFileByte
StrCmp $R7 3 ReadFileByte
StrCmp $R7 4 ReadFileByte
StrCmp $R7 5 ReadFileByte
StrCmp $R7 6 ReadFileByte
StrCmp $R7 7 ReadFileByte
StrCmp $R7 8 ReadFileByte
StrCmp $R7 9 ReadFileByte
StrCmp $R7 10 ReadFileByte
StrCmp $R7 11 ReadFileByte
StrCmp $R7 13 ReadFileByte
StrCmp $R7 14 ReadFileByte
StrCmp $R7 15 ReadFileByte
StrCmp $R7 16 ReadFileByte
StrCmp $R7 17 ReadFileByte
StrCmp $R7 18 ReadFileByte
StrCmp $R7 19 ReadFileByte
StrCmp $R7 20 ReadFileByte
StrCmp $R7 21 ReadFileByte
StrCmp $R7 22 ReadFileByte
StrCmp $R7 23 ReadFileByte
StrCmp $R7 24 ReadFileByte
StrCmp $R7 25 ReadFileByte
StrCmp $R7 26 ReadFileByte
StrCmp $R7 27 ReadFileByte
StrCmp $R7 28 ReadFileByte
StrCmp $R7 29 ReadFileByte
StrCmp $R7 30 ReadFileByte
StrCmp $R7 31 ReadFileByte
IntFmt $R7 "%c" $R7
StrCpy $R6 $R6$R7

:(


IntCmp or IntCmpU is what you're looking for.


Thanks

Just need to get into the different mindset as to how NSIS works.
Once there, the world is my oyster.

:)