Android Question Conditional operator logic

Genricke

Member
Hi !
Simple example: compiles and runs - no problem !

B4X:
Sub EasyTest
    If 2 = 2 Then
        Log(1)
        If      3 = 5  Then Log("One")
        else If 4 = 4  Then Log("Two")
        Log(3)
    End If
End Sub

Waiting: 1 -> Two -> 3
Reality: 1
Why ?! Thanks !
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…