We want to check whether the two values are either non-negative or negative.
How can we avoid calling each sub twice? Without adding any variable.
B4X:
If (Func1 >= 0 And Func2 >= 0) Or (Func1 < 0 And Func2 < 0) Then
Log("Good!")
Else
Log("Bad")
End If
Sub Func1 As Int
'...
End Sub
Sub Func2 As int
'...
End Sub
How can we avoid calling each sub twice? Without adding any variable.