Documentos de Académico
Documentos de Profesional
Documentos de Cultura
SimpleIf3 = -16
End Function
-----------
Function BlockIf(parametro)
BlockIf = -1
BlockIf = 0
Else
BlockIf = 1
End If
End Function
--------------
If p1 > 10 Then
ifanidado = 2
If p2 > 5 Then
ifanidado = 3
Else
ifanidado = 4
End If
Else
If p2 > 5 Then
ifanidado = 6
Else
ifanidado = 7
End If
End If
End Function
---------------
Function SimpleSelect(parametro)
Case 1
SimpleSelect = 111
Case 2
SimpleSelect = 222
Case 3, 5, 6
SimpleSelect = 333
Case 4, 2
SimpleSelect = 444
Case Else
SimpleSelect = 555
End Select
End Function
-------------
Function Binomial(p, n, x)
Binomial = Application.Combin(n, x) * p ^ x * (1 - p) ^ (n - x)
End Function