Jump to content

Recommended Posts

Posted

am i setting this up right???

Select
     Case $n1 = "x" and $n2 = "x" and  $n3 = 1
        Dofunc1()
     Case $n1 = "x" and $n2 = "x" and  $n3 = 2
        Dofunc2()    
EndSelect

func1
MsgBox(0, "", "1")
endfunc

func2
MsgBox(0, "", "2")
endfunc

thx

  • Administrators
Posted

Looks good to me. I'd probably put the AND in capitals for easy reading but doesn't make much of a difference :whistle:

Oh, don't put "dofunc1()" just do "func1()"


 

Posted (edited)

Select
    Case $n1 = "x" and $n2 = "x" and  $n3 = 1
       func1(); < dont get past here 
    Case $n1 = "x" and $n2 = "x" and  $n3 = 2
      func2()    
EndSelect

func1
MsgBox(0, "", "1")
endfunc

func2
MsgBox(0, "", "2")
endfunc

Edited by -TS-
  • Administrators
Posted

Select
   Case $n1 = "x" AND $n2 = "x" AND $n3 = 1
      func1()
   Case $n1 = "x" AND $n2 = "x" AND $n3 = 2
      func2()    
EndSelect

Func Func1()
    MsgBox(0, "", "1")
EndFunc

Func Func2()
    MsgBox(0, "", "2")
EndFunc


 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...