mIRC Home    About    Download    Register    News    Help

Print Thread
#92671 03/08/04 05:57 PM
Joined: Jan 2004
Posts: 84
A
Adriano Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Jan 2004
Posts: 84
Hello,
i need help with this code

$iif(loadChat,$style(1)) $chr(160) &DCC Chat $chr(160):loadChat | else { unloadChat }

i not know what's wrong this code, but i want to made menu on/off in one click, like enable disable, but i not want two sub menu for it, just one click enable/disable

#92672 03/08/04 10:56 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
you need an if statement for else to work.
for example:
Code:
[color:blue]%x = 1[/color] [color:green];set the value of %x to 1[/color]
[color:blue]if (%x = 1) { return $true }[/color] [color:green];if %x is 1 return true[/color]
[color:blue]else { return $false }[/color] [color:green];if %x is not 1 return false[/color]


/help if then else


Link Copied to Clipboard