Jump to content

is not equal <> ?


gcue
 Share

Recommended Posts

Other then what Val said only thing is in this code if $broadcast="2" then the value for $broadcast will be overwritten with "Disabled", thus satisfying $broadcast<>"2" (because it now equals "Disabled") which then make it "Enabled"

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
Share on other sites

Other then what Val said only thing is in this code if $broadcast="2" then the value for $broadcast will be overwritten with "Disabled", thus satisfying $broadcast<>"2" (because it now equals "Disabled") which then make it "Enabled"

good point.... :D

I was sure he was testing by "numbers"

Another approach

$broadcast = 1

If $broadcast = "2"  Then
    $broadcast = "Disabled" 
Else
    $broadcast = "Enabled" 
EndIf

MsgBox(0x0, "", $broadcast)

8)

Edited by Valuater

NEWHeader1.png

Link to comment
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
 Share

  • Recently Browsing   0 members

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