两个数字相减,支持字符串操作命令.
功能: 两个数字相减,支持字符串操作.
说明: INC命令支持相同操作,INC命令的作用是相加,DEC的作用是减.
例子1: 数字相减
#IF
#ACT
MOV N5 100
SendMsg 5 N5等于:<$STR(N5)>
DEC N5 10
SendMsg 5 N5等于:<$STR(N5)>
例子2: 字符串操作时
#IF
#ACT
MOV S6 http://www.uc955.com
SendMsg 5 S6等于:<$STR(S6)>
DEC S6 http://
SendMsg 5 S6等于:<$STR(S6)>
例子3: 对个人变量操作时
#IF
#ACT
VAR Integer HUMAN QQQQ
MOV HUMAN QQQQ 500
SendMsg 5 QQQQ等于:<$HUMAN(QQQQ)>
DEC HUMAN QQQQ 100
SendMsg 5 QQQQ等于:<$HUMAN(QQQQ)>
例子4: 对个人变量操作变量时
#IF
#ACT
VAR Integer HUMAN QQQQ
MOV HUMAN QQQQ 500
MOV N10 150
SendMsg 5 QQQQ等于:<$HUMAN(QQQQ)>
DEC HUMAN QQQQ <$STR(N10)>
SendMsg 5 QQQQ等于:<$HUMAN(QQQQ)>
|
|