Skip to content
Permalink
Browse files

Exposed IIf function to scripting.

  • Loading branch information...
Davnit committed Apr 6, 2016
1 parent d28aead commit 4b8a2038bb988026bcef7e9a1d578bdc639a6372
Showing with 7 additions and 0 deletions.
  1. +7 −0 trunk/clsScriptSupportClass.cls
@@ -1570,6 +1570,13 @@ Public Function GetCurrentServerIP()
End If
End Function

'// IIF
'// Returns a different value based on if a statement is true or false.
'// see: https://msdn.microsoft.com/en-us/library/27ydhh0d(v=vs.90).aspx
Public Function IIf(ByVal bExpression As Boolean, ByVal vTruePart As Variant, ByVal vFalsePart As Variant) As Variant
IIf = Interaction.IIf(bExpression, vTruePart, vFalsePart)
End Function

'Class_Terminate doesn't run when a UI form is created via a script. I made this sub so the bot's Unload sub can explicitly _
call the code within Class_Terminate to kill all the objects. - FrOzeN
Public Sub Dispose()

0 comments on commit 4b8a203

Please sign in to comment.
You can’t perform that action at this time.