mIRC Homepage
Posted By: state whats wrong with this - 24/11/04 10:16 PM
on *:DIALOG:wsp:sclick:2: { if ($did(1).state) { did -e wsp 3,5,6,7 } | else { did -b wsp 3,5,6,7 } }


did invalid parameters, something stupied missing probably, cheers
Posted By: Naz Re: whats wrong with this - 25/11/04 12:09 AM
the "if" is incomplete. use...
if ($did(1).state == 1) or if ($did(1).state == 0)
Posted By: Relinsquish Re: whats wrong with this - 25/11/04 05:15 AM
Code:
On *:DIALOG:wsp:sclick:2: {
If ($Did(1).state == 1) { did -e wsp 3,5,6,7 }
Else { did -b wsp 3,5,6,7 }
}
Posted By: LocutusofBorg Re: whats wrong with this - 25/11/04 05:50 AM
Actually his $did was complete.

if ($did(1).state) { command1 } | else { command2 }

This would trigger command 2 if the box is checked, command1 if it is unchecked. If it's unchecked, the $did(1).state will return 0, which will make mIRC interpret the if statement to be false.
Posted By: state Re: whats wrong with this - 25/11/04 07:35 PM
cheers, i had it the wrong way round
© mIRC Discussion Forums