mIRC Homepage
Posted By: Dragon_RLL_ numaric value only - 04/03/03 01:25 AM
is there a way to make it so that a variable will only accept a numaric value?

its a on text command, so when i have people doing !command kdfkdfk it messes it up becuase i need it to only use and accpt numaric values
Posted By: Online Re: numaric value only - 04/03/03 01:31 AM
Use the isnum operator.

Example:
Code:

On *:text:!command *:#:{
  if $2 isnum {
    do stuff
  }
  else {
    msg $nick We only accept numeric values.
  }
}

Read /help if-then-else for more info.
Posted By: Dragon_RLL_ Re: numaric value only - 04/03/03 01:37 AM
thanks, i thought there was a command like there, i must have just over looked it
© mIRC Discussion Forums