From WikiChip
$bfind Identifier - mIRC
< mirc‎ | identifiers

$bfind searches &binvar for a matching value.


$bfind(&binvar, N , M )


  • &binvar - A binary variable name which begins with the & symbol.
  • N - The position within the binary variable where it starts searching.
  • M - Value being searched for, either ASCII decimals 0-255 or text.


  • text - Treats a numeric N as text instead of ASCII value(s)

Note: Searches for text are case-insensitive. Case-senstive searches require listing the specific ASCII values of the upper and/or lower case letter. Returns 0 for not found.


//bset -t &var 1 test wavmIRC32WAV test | echo -a $bfind(&var,1,32) / $bfind(&var,11,32) / $bfind(&var,1,32).text / $bfind(&var, 1, $asc(W) $asc(A) $asc(V) ) / $bfind(&var,1,WAV).text / $bfind(&var,1,abc).text
  5 / 18 / 13 / 15 / 6 / 0
  Note that 32 searches for ASCII 32 (space) except when .text is used. Searching for "WAV" is case-insensitive and finds the lowercase letters, but the search for the 3 ASCII values finds the matching case.


Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also[edit]