逻辑语句的宏文件: !include logiclib.nsh
IF语句:
   ${If} $0 == 'some value'
      MessageBox MB_OK '$$0 is some value'
   ${ElseIf} $0 == 'some other value'
      MessageBox MB_OK '$$0 is some other value'
   ${Else}
      MessageBox MB_OK '$$0 is "$0"'
     ${EndIf}

while循环:

   StrCpy $R1 0 ——————————字符串赋值为整型
   ${While} $R1 < 5
         IntOp $R1 $R1 + 1
         DetailPrint $R1——————————打印字符串
${EndWhile}