Jump to content
K3STROS

If, ElseIf not quite working

Recommended Posts

K3STROS

Hmmm... Not too sure what i'm doing wrong, i want to chose either one of the functions but at random

Func GoG()

Local $HoT = Random(0,1,1)

    If $HoT = 1 Then

        Call(JohnDoe())

    Else $HoT = 0 Then

        Call(JaneDoe())

    EndIf
    
EndFunc

 

Share this post


Link to post
Share on other sites
UritOR
Gog()


Func GoG()

Local $HoT = Random(0,1,1)

    If $HoT = 1 Then
        MsgBox(0,"",$HoT)

    ElseIf $HoT = 0 Then
        MsgBox(0,"",$HoT)

    EndIf

EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×