2012-08-16 23:41:25 -04:00
|
|
|
snippet if
|
2022-09-25 06:10:28 -04:00
|
|
|
If ${1:condition} Then
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; True code}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndIf
|
|
|
|
snippet el
|
|
|
|
Else
|
2013-11-16 14:45:48 -05:00
|
|
|
${0}
|
2013-07-17 19:06:05 -04:00
|
|
|
snippet eif
|
2022-09-25 06:10:28 -04:00
|
|
|
ElseIf ${1:condition} Then
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; True code}
|
2012-08-16 23:41:25 -04:00
|
|
|
# If/Else block
|
2013-07-17 19:06:05 -04:00
|
|
|
snippet ife
|
2022-09-25 06:10:28 -04:00
|
|
|
If ${1:condition} Then
|
2012-08-16 23:41:25 -04:00
|
|
|
${2:; True code}
|
|
|
|
Else
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; Else code}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndIf
|
2013-07-17 19:06:05 -04:00
|
|
|
# If/ElseIf/Else block - because there is eif this is not really neccessary
|
2012-08-16 23:41:25 -04:00
|
|
|
snippet ifelif
|
|
|
|
If ${1:condition 1} Then
|
|
|
|
${2:; True code}
|
|
|
|
ElseIf ${3:condition 2} Then
|
|
|
|
${4:; True code}
|
|
|
|
Else
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; Else code}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndIf
|
|
|
|
# Switch block
|
|
|
|
snippet switch
|
2022-09-25 06:10:28 -04:00
|
|
|
Switch (${1:condition})
|
2013-11-16 14:45:48 -05:00
|
|
|
Case ${2:case1}:
|
|
|
|
${3:; Case 1 code}
|
2012-08-16 23:41:25 -04:00
|
|
|
Case Else:
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; Else code}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndSwitch
|
|
|
|
# Select block
|
|
|
|
snippet select
|
2022-09-25 06:10:28 -04:00
|
|
|
Select (${1:condition})
|
2013-11-16 14:45:48 -05:00
|
|
|
Case ${2:case1}:
|
|
|
|
${3:; Case 1 code}
|
2012-08-16 23:41:25 -04:00
|
|
|
Case Else:
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; Else code}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndSelect
|
|
|
|
# While loop
|
2013-11-16 14:45:48 -05:00
|
|
|
snippet wh
|
2022-09-25 06:10:28 -04:00
|
|
|
While (${1:condition})
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; code...}
|
2012-08-16 23:41:25 -04:00
|
|
|
WEnd
|
|
|
|
# For loop
|
|
|
|
snippet for
|
|
|
|
For ${1:n} = ${3:1} to ${2:count}
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:; code...}
|
2012-08-16 23:41:25 -04:00
|
|
|
Next
|
|
|
|
# New Function
|
|
|
|
snippet func
|
|
|
|
Func ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
|
2013-11-16 14:45:48 -05:00
|
|
|
${0:Return}
|
2012-08-16 23:41:25 -04:00
|
|
|
EndFunc
|
|
|
|
# Message box
|
|
|
|
snippet msg
|
2013-11-16 14:45:48 -05:00
|
|
|
MsgBox(${0:MsgType}, ${1:"Title"}, ${2:"Message Text"})
|
2012-08-16 23:41:25 -04:00
|
|
|
# Debug Message
|
|
|
|
snippet debug
|
2013-11-16 14:45:48 -05:00
|
|
|
MsgBox(0, "Debug", ${0:"Debug Message"})
|
2012-08-16 23:41:25 -04:00
|
|
|
# Show Variable Debug Message
|
|
|
|
snippet showvar
|
2013-11-16 14:45:48 -05:00
|
|
|
MsgBox(0, "${0:VarName}", $1)
|