jaytea commented on a Page, Custom DCX Identifiers  -  Dec 04, 2011

Savvy?

no Jack Sparrow, mIRC script doesn't work like that ;)

if statements, while loops, /var and a few others are commands that involve exceptional parsing routines. in order for this to happen in the case of elseif, for example, "elseif" needs to appear literally at the start of the command. mIRC needs to be able to detect it before it starts evaluating identifiers and variables in your code.

and even if it did work, it would result in rather poor code since the condition(s) contained in '$sc' would be re-examined unnecessarily. this is the logic you're aiming for:

if ($2 == sclick) {
  if ($3 == 2) {

  }
  elseif ($3 == 3) {

  }
  elseif ($3 == 4) {

  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.