Private Sub Button1_Click
'ExecIF example.
Dim A As Int = 10
Dim B As Int = 2
Dim Result As Int
Result = B4XExecCondLM.ExecIF(Array As Boolean(a <= b, a > b), Array As String("Multiply", "Divide"), Array As Object(10, 2), True, Me)
Log("ExecIf result: " & Result)
'ExecOnIndex example.
B4XExecCondLM.ExecOnIndex(1, Array As String("Zero", "One", "Two"), Null, False, Me)
End Sub
Public Sub Multiply(Value1 As Int, Value2 As Int) As Int
Return Value1 * Value2
End Sub
Public Sub Divide(Value1 As Int, Value2 As Int) As Double
Return Value1 / Value2
End Sub
Public Sub Zero
Log("Zero")
End Sub
Public Sub One
Log("One")
End Sub
Public Sub Two
Log("Two")
End Sub